Skip to content

Migrate one-shot classloading to hidden classes #8837

Description

@headius

In Java 15, the MethodHandles.Lookup class gained the ability to define hidden classes

By using this feature for our one-shot classloaded classes, like JIT methods, we should be able to reduce the memory overhead of each class, since they will not drag along a full classloader and all the metadata associated with a non-anonymous class.

This could also reduce metaspace usage and overall memory usage of JRuby when using JIT to compile Ruby code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions