You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
-Xshareclasses automatically turns on -XX:+ShareOrphans #1354
Overview:
OpenJ9 introduced options -XX:+ShareOrphans and -XX:-ShareOrphans in 0.46 release. See #1330. User has to explicitly specify -XX:+ShareOrphans to turn on this feature. In 0.47 release, if option -Xshareclasses is specified in the command line, it automatically turns on -XX:+ShareOrphans.
Release target:
Eclipse OpenJ9 0.47
Applies to the following JDK versions:
All versions
In the documentation, we have mentioned that the " -XX:+ShareOrphans option automatically enables the -Xshareclasses option." So, now with this change, whichever option is enabled first, the other option will be enabled automatically? Is my understanding correct?
Also, please refer to #1383 (comment) regarding the following 2 known problems.
The class comparison might not detect the removal of method access modifiers. For example, a change of a method from public to package-private.
java.lang.StackTraceElement.getClassLoaderName() might return null for classes that are stored in the shared cache.
As per your comment in #1330 (comment), are these 2 known problems now fixed in 0.47.0 release?
In the documentation, we have mentioned that the " -XX:+ShareOrphans option automatically enables the -Xshareclasses option." So, now with this change, whichever option is enabled first, the other option will be enabled automatically? Is my understanding correct?
Yes, so in 0.46, users have to specify -XX:+ShareOrphans (either -XX:+ShareOrphans alone or -XX:+ShareOrphans + their existing -Xshareclasses option) to turn on this new feature. In 0.47, users with existing -Xshareclasses options do not need to specify -XX:+ShareOrphans anymore.
Activity
Sreekala-Gopakumar commentedon Aug 30, 2024
In the documentation, we have mentioned that the "
-XX:+ShareOrphansoption automatically enables the-Xshareclassesoption." So, now with this change, whichever option is enabled first, the other option will be enabled automatically? Is my understanding correct?Sreekala-Gopakumar commentedon Aug 30, 2024
Also, please refer to #1383 (comment) regarding the following 2 known problems.
As per your comment in #1330 (comment), are these 2 known problems now fixed in 0.47.0 release?
-Xshareclasses automatically turns on -XX:+ShareOrphans
-Xshareclasses automatically turns on -XX:+ShareOrphans
hangshao0 commentedon Aug 30, 2024
Yes, so in 0.46, users have to specify
-XX:+ShareOrphans(either-XX:+ShareOrphansalone or-XX:+ShareOrphans+ their existing-Xshareclassesoption) to turn on this new feature. In 0.47, users with existing-Xshareclassesoptions do not need to specify-XX:+ShareOrphansanymore.hangshao0 commentedon Aug 30, 2024
Yes.
-Xshareclasses automatically turns on -XX:+ShareOrphans
-Xshareclasses automatically turns on -XX:+ShareOrphans
-Xshareclasses automatically turns on -XX:+ShareOrphans