On Fri, 17 Feb 2023 16:55:28 GMT, Ioi Lam <ik...@openjdk.org> wrote:

> Java doesn't guarantee to use unique names even for "regular" classes. You 
> can use two class loaders that load two completely different classes with the 
> exact same name.
> 
> How does Graal and qbicc handle this?

In qbicc, we keep separate symbol, object file, and subdirectory names by class 
loader, and we use various schemes to try to derive a stable and comprehensible 
identifier from a given class loader (the simplest being the class loader's 
name, if it is unique). It's not a perfect solution by any means, but it's 
"good enough" for our use case at present.

-------------

PR: https://git.openjdk.org/jdk/pull/12579

Reply via email to