Skip to content

Commit

Permalink
8257726: Make -XX:+StressLdcRewrite option a diagnostic option
Browse files Browse the repository at this point in the history
Reviewed-by: lfoltan, stuefe, dcubed
  • Loading branch information
coleenp committed Dec 15, 2020
1 parent 8bf46c7 commit 4d6f318
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/hotspot/share/runtime/globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,11 @@ const intx ObjectAlignmentInBytes = 8;
product(ccstr, TraceJVMTI, NULL, \
"Trace flags for JVMTI functions and events") \
\
/* This option can change an EMCP method into an obsolete method. */ \
/* This can affect tests that except specific methods to be EMCP. */ \
/* This option should be used with caution. */ \
product(bool, StressLdcRewrite, false, \
"Force ldc -> ldc_w rewrite during RedefineClasses") \
product(bool, StressLdcRewrite, false, DIAGNOSTIC, \
"Force ldc -> ldc_w rewrite during RedefineClasses. " \
"This option can change an EMCP method into an obsolete method " \
"and can affect tests that expect specific methods to be EMCP. " \
"This option should be used with caution.") \
\
product(bool, AllowRedefinitionToAddDeleteMethods, false, \
"(Deprecated) Allow redefinition to add and delete private " \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -68,7 +68,7 @@ cp "${TESTSRC}"/RedefineMethodWithAnnotationsAnnotations.java \
RedefineMethodWithAnnotationsAnnotations.java

"${JAVA}" ${TESTVMOPTS} -javaagent:RedefineMethodWithAnnotationsAgent.jar \
-XX:+StressLdcRewrite -XX:+IgnoreUnrecognizedVMOptions \
-XX:+UnlockDiagnosticVMOptions -XX:+StressLdcRewrite -XX:+IgnoreUnrecognizedVMOptions \
-cp "${TESTCLASSES}" RedefineMethodWithAnnotationsApp > output.log 2>&1
cat output.log

Expand Down

1 comment on commit 4d6f318

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.