Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8138588: VerifyMergedCPBytecodes option cleanup needed
Browse files Browse the repository at this point in the history
Reviewed-by: hseigel, dcubed, sspitsyn
  • Loading branch information
coleenp committed Nov 10, 2020
1 parent a7f4691 commit 7d4e86b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/hotspot/share/prims/jvmtiRedefineClasses.cpp
Expand Up @@ -1452,7 +1452,8 @@ jvmtiError VM_RedefineClasses::load_new_class_versions(TRAPS) {
}
}

if (VerifyMergedCPBytecodes) {
#ifdef ASSERT
{
// verify what we have done during constant pool merging
{
RedefineVerifyMark rvm(the_class, scratch_class, state);
Expand All @@ -1472,6 +1473,7 @@ jvmtiError VM_RedefineClasses::load_new_class_versions(TRAPS) {
}
}
}
#endif // ASSERT

Rewriter::rewrite(scratch_class, THREAD);
if (!HAS_PENDING_EXCEPTION) {
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/arguments.cpp
Expand Up @@ -556,6 +556,7 @@ static SpecialFlag const special_jvm_flags[] = {
{ "InsertMemBarAfterArraycopy", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "Debugging", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "UseRDPCForConstantTableBase", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "VerifyMergedCPBytecodes", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },

#ifdef TEST_VERIFY_SPECIAL_JVM_FLAGS
// These entries will generate build errors. Their purpose is to test the macros.
Expand Down
4 changes: 0 additions & 4 deletions src/hotspot/share/runtime/globals.hpp
Expand Up @@ -872,10 +872,6 @@ const intx ObjectAlignmentInBytes = 8;
product(bool, StressLdcRewrite, false, \
"Force ldc -> ldc_w rewrite during RedefineClasses") \
\
/* change to false by default sometime after Mustang */ \
product(bool, VerifyMergedCPBytecodes, true, \
"Verify bytecodes after RedefineClasses constant pool merging") \
\
product(bool, AllowRedefinitionToAddDeleteMethods, false, \
"(Deprecated) Allow redefinition to add and delete private " \
"static or final methods for compatibility with old releases") \
Expand Down
1 change: 0 additions & 1 deletion test/hotspot/jtreg/serviceability/sa/ClhsdbFlags.java
Expand Up @@ -65,7 +65,6 @@ public static void runBasicTest() throws Exception {
"UnlockDiagnosticVMOptions = true",
"MaxFDLimit = false",
"MaxJavaStackTraceDepth = 1024",
"VerifyMergedCPBytecodes",
"ConcGCThreads", "UseThreadPriorities",
"ShowHiddenFrames"));
expStrMap.put("flags -nd", List.of(
Expand Down

0 comments on commit 7d4e86b

Please sign in to comment.