RFR: 8338365: [PPC64, s390] Out-of-bounds array access in secondary_super_cache

Amit Kumar amitkumar at openjdk.org
Wed Aug 14 09:41:49 UTC 2024


On Wed, 14 Aug 2024 08:58:20 GMT, Amit Kumar <amitkumar at openjdk.org> wrote:

> Port for s390x and PPC for the bug: [JDK-8337958](https://bugs.openjdk.org/browse/JDK-8337958), Out-of-bounds array access in secondary_super_cache

Tier1 (fastdebug) test passed with these settings: 

diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp
index 61efc0b9376..5e91b4e22ca 100644
--- a/src/hotspot/share/runtime/globals.hpp
+++ b/src/hotspot/share/runtime/globals.hpp
@@ -1975,16 +1975,16 @@ const int ObjectAlignmentInBytes = 8;
                 "rewriting/transformation independently of the JVMTI "      \
                 "can_{retransform/redefine}_classes capabilities.")         \
                                                                             \
-  product(bool, UseSecondarySupersCache, true, DIAGNOSTIC,                  \
+  product(bool, UseSecondarySupersCache, false, DIAGNOSTIC,                  \
                 "Use secondary supers cache during subtype checks.")        \
                                                                             \
-  product(bool, UseSecondarySupersTable, false, DIAGNOSTIC,                 \
+  product(bool, UseSecondarySupersTable, true, DIAGNOSTIC,                 \
                 "Use hash table to lookup secondary supers.")               \
                                                                             \
-  product(bool, VerifySecondarySupers, false, DIAGNOSTIC,                   \
+  product(bool, VerifySecondarySupers, true, DIAGNOSTIC,                   \
           "Check that linear and hashed secondary lookups return the same result.") \
                                                                             \
-  product(bool, StressSecondarySupers, false, DIAGNOSTIC,                   \
+  product(bool, StressSecondarySupers, true, DIAGNOSTIC,                   \
           "Use a terrible hash function in order to generate many collisions.") \
 
 // end of RUNTIME_FLAGS

@TheRealMDoerr would you please take a look :-)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20578#issuecomment-2288302795
PR Comment: https://git.openjdk.org/jdk/pull/20578#issuecomment-2288303554


More information about the hotspot-dev mailing list