-
Notifications
You must be signed in to change notification settings - Fork 776
Introduce a constantPool cache v2 #22974
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
base: master
Are you sure you want to change the base?
Conversation
Cache the constantPool object off the j.l.Class after the first invocation of Access::getConstantPool. Given that the ConstantPool instance is associated with a single version of the class, as soon as the class is redefined the cache is invalidated and disabled. Signed-off-by: tajila <[email protected]>
|
Yet to reproduce the issue on xlinux, so maybe there is a non obvious platform dependency here. |
|
jenkins test sanity.openjdk amac jdk21 |
| * constantpool associated with clazz | ||
| */ | ||
| public static ConstantPool getConstantPoolFromAnnotationBytes(Class<?> clazz, byte[] array) { | ||
| /* Check the cp cache on the Class object first */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please finish each sentence with a period (throughout).
jcl/src/java.base/share/classes/java/lang/invoke/MethodHandleResolver.java
Show resolved
Hide resolved
|
What's different in this one? |
Nothing, Im just trying to reproduce the failure with more debug info. |
|
jenkins test sanity.openjdk amac jdk21 |
|
jenkins test sanity.openjdk amac jdk21 |
|
jenkins test sanity.openjdk amac jdk21 |
|
jenkins test sanity.openjdk amac jdk21 |
|
jenkins test sanity.openjdk amac jdk21 |
|
jenkins test sanity plinux jdk17 |
eaa45af to
4facbef
Compare
|
jenkins test sanity.openjdk amac jdk21 |
6cbee62 to
7736698
Compare
|
jenkins test sanity.openjdk amac jdk21 |
|
jenkins test sanity.openjdk amac jdk21 |
|
jenkins test sanity.openjdk amac jdk21 |
2e7a389 to
2db6b17
Compare
|
jenkins test sanity.openjdk amac jdk21 depends eclipse-omr/omr#8060 |
Signed-off-by: Tobi Ajila <[email protected]>
|
jenkins test sanity.openjdk amac jdk21 depends eclipse-omr/omr#8060 |
Cache the constantPool object off the j.l.Class after the first invocation of Access::getConstantPool. Given that the ConstantPool instance is associated with a single version of the class, as soon as the class is redefined the cache is invalidated and disabled.