8164208: Update tests with redefine classes UL options and tags​

Reviewed-by: coleenp, gtriantafill
This commit is contained in:
Robbin Ehn 2016-08-24 20:38:22 +02:00
parent 2e533f4c60
commit dcb6b6c2e6
3 changed files with 3 additions and 18 deletions

View File

@ -70,7 +70,7 @@ else
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

View File

@ -87,23 +87,8 @@ mv RedefineSubclassWithTwoInterfacesImpl.class \
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

View File

@ -70,7 +70,7 @@ else
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