RFR: 8292914: Drop the counter from lambda class names [v6]

David M. Lloyd duke at openjdk.org
Fri Feb 17 17:09:26 UTC 2023


On Fri, 17 Feb 2023 16:55:28 GMT, Ioi Lam <iklam at 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


More information about the core-libs-dev mailing list