changeset 17564:fff545bf536f

8164208: Update tests with redefine classes UL options and tags? Reviewed-by: coleenp, gtriantafill
author rehn
date Wed, 24 Aug 2016 20:38:22 +0200
parents 5d5653c5bcab
children 5f9f12b3024f
files test/java/lang/instrument/RedefineBigClass.sh test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh test/java/lang/instrument/RetransformBigClass.sh
diffstat 3 files changed, 3 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/instrument/RedefineBigClass.sh	Mon Aug 22 21:37:37 2016 +0300
+++ b/test/java/lang/instrument/RedefineBigClass.sh	Wed Aug 24 20:38:22 2016 +0200
@@ -70,7 +70,7 @@
 fi
 
 "${JAVA}" ${TESTVMOPTS} \
-    -XX:TraceRedefineClasses=3 ${NMT} \
+    -Xlog:redefine+class+load=debug,redefine+class+load+exceptions=info ${NMT} \
     -javaagent:RedefineBigClassAgent.jar=BigClass.class \
     -classpath "${TESTCLASSES}" RedefineBigClassApp \
     > output.log 2>&1 
--- a/test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh	Mon Aug 22 21:37:37 2016 +0300
+++ b/test/java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh	Wed Aug 24 20:38:22 2016 +0200
@@ -87,23 +87,8 @@
 
 echo "INFO: launching RedefineSubclassWithTwoInterfacesApp"
 
-# TraceRedefineClasses options:
-#
-#    0x00000001 |          1 - name each target class before loading, after
-#                              loading and after redefinition is completed
-#    0x00000002 |          2 - print info if parsing, linking or
-#                              verification throws an exception
-#    0x00000004 |          4 - print timer info for the VM operation
-#    0x00001000 |       4096 - detect calls to obsolete methods
-#    0x00002000 |       8192 - fail a guarantee() in addition to detection
-#    0x00004000 |      16384 - detect old/obsolete methods in metadata
-#    0x00100000 |    1048576 - impl details: vtable updates
-#    0x00200000 |    2097152 - impl details: itable updates
-#
-#    1+2+4+4096+8192+16384+1048576+2097152 == 3174407
-
 "${JAVA}" ${TESTVMOPTS} \
-    -XX:TraceRedefineClasses=3174407 \
+    -Xlog:redefine+class+load=trace,redefine+class+load+exceptions=trace,redefine+class+timer=trace,redefine+class+obsolete=trace,redefine+class+obsolete+metadata=trace,redefine+class+constantpool=trace \
     -javaagent:RedefineSubclassWithTwoInterfacesAgent.jar \
     -classpath "${TESTCLASSES}" \
     RedefineSubclassWithTwoInterfacesApp > output.log 2>&1
--- a/test/java/lang/instrument/RetransformBigClass.sh	Mon Aug 22 21:37:37 2016 +0300
+++ b/test/java/lang/instrument/RetransformBigClass.sh	Wed Aug 24 20:38:22 2016 +0200
@@ -70,7 +70,7 @@
 fi
 
 "${JAVA}" ${TESTVMOPTS} \
-    -XX:TraceRedefineClasses=3 ${NMT} \
+    -Xlog:redefine+class+load=debug,redefine+class+load+exceptions=info ${NMT} \
     -javaagent:RetransformBigClassAgent.jar=BigClass.class \
     -classpath "${TESTCLASSES}" RetransformBigClassApp \
     > output.log 2>&1