8000 Migrate one-shot classloading to hidden classes · Issue #8837 · jruby/jruby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Migrate one-shot classloading to hidden classes #8837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
headius opened this issue May 13, 2025 · 0 comments
Open

Migrate one-shot classloading to hidden classes #8837

headius opened this issue May 13, 2025 · 0 comments

Comments

@headius
Copy link
Member
headius commented May 13, 2025

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.

@headius headius added this to the JRuby 10.1.0.0 milestone May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0