8245723: Remove PrintCompressedOopsMode and change gc+heap+coops info log to debug level
Reviewed-by: dholmes, coleenp, tschatzl
This commit is contained in:
parent
d0294c3845
commit
2ff952bf32
src/hotspot/share
test/hotspot/jtreg/runtime
@ -66,7 +66,7 @@ void CompressedOops::initialize(const ReservedHeapSpace& heap_space) {
|
||||
|
||||
_heap_address_range = heap_space.region();
|
||||
|
||||
LogTarget(Info, gc, heap, coops) lt;
|
||||
LogTarget(Debug, gc, heap, coops) lt;
|
||||
if (lt.is_enabled()) {
|
||||
ResourceMark rm;
|
||||
LogStream ls(lt);
|
||||
|
@ -602,7 +602,6 @@ static AliasedFlag const aliased_jvm_flags[] = {
|
||||
|
||||
// NOTE: A compatibility request will be necessary for each alias to be removed.
|
||||
static AliasedLoggingFlag const aliased_logging_flags[] = {
|
||||
{ "PrintCompressedOopsMode", LogLevel::Info, true, LOG_TAGS(gc, heap, coops) },
|
||||
{ "PrintSharedSpaces", LogLevel::Info, true, LOG_TAGS(cds) },
|
||||
{ "TraceBiasedLocking", LogLevel::Info, true, LOG_TAGS(biasedlocking) },
|
||||
{ "TraceClassLoading", LogLevel::Info, true, LOG_TAGS(class, load) },
|
||||
|
@ -154,9 +154,9 @@ public class CompressedClassPointers {
|
||||
"-XX:SharedArchiveFile=./CompressedClassPointers.jsa",
|
||||
"-Xmx128m",
|
||||
"-XX:SharedBaseAddress=8g",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-XX:+VerifyBeforeGC",
|
||||
"-Xshare:dump", "-Xlog:cds");
|
||||
"-Xshare:dump",
|
||||
"-Xlog:cds,gc+heap+coops=debug");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
if (output.firstMatch("Shared spaces are not supported in this VM") != null) {
|
||||
return;
|
||||
@ -170,7 +170,7 @@ public class CompressedClassPointers {
|
||||
"-XX:SharedArchiveFile=./CompressedClassPointers.jsa",
|
||||
"-Xmx128m",
|
||||
"-XX:SharedBaseAddress=8g",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-Xlog:gc+heap+coops=debug",
|
||||
"-Xshare:on",
|
||||
"-version");
|
||||
output = new OutputAnalyzer(pb.start());
|
||||
@ -269,9 +269,9 @@ public class CompressedClassPointers {
|
||||
"-XX:SharedArchiveFile=./CompressedClassPointers.jsa",
|
||||
"-Xmx128m",
|
||||
"-XX:SharedBaseAddress=8g",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-XX:+VerifyBeforeGC",
|
||||
"-Xshare:dump", "-Xlog:cds");
|
||||
"-Xshare:dump",
|
||||
"-Xlog:cds,gc+heap+coops=debug");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
if (output.firstMatch("Shared spaces are not supported in this VM") != null) {
|
||||
return;
|
||||
@ -287,7 +287,7 @@ public class CompressedClassPointers {
|
||||
"-XX:SharedArchiveFile=./CompressedClassPointers.jsa",
|
||||
"-Xmx128m",
|
||||
"-XX:SharedBaseAddress=8g",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-Xlog:gc+heap+coops=debug",
|
||||
"-Xshare:on",
|
||||
"-version");
|
||||
output = new OutputAnalyzer(pb.start());
|
||||
|
@ -51,24 +51,18 @@ public class CompressedOopsTest {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseCompressedOops",
|
||||
"-Xlog:gc+heap+coops=info",
|
||||
"-Xlog:gc+heap+coops=debug",
|
||||
InnerClass.class.getName());
|
||||
analyzeOutputOn(pb);
|
||||
|
||||
pb = ProcessTools.createJavaProcessBuilder("-XX:+UseCompressedOops",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
InnerClass.class.getName());
|
||||
analyzeOutputOn(pb);
|
||||
|
||||
pb = ProcessTools.createJavaProcessBuilder("-XX:+UseCompressedOops",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-Xlog:gc+heap+coops=off",
|
||||
"-Xlog:gc+heap+coops",
|
||||
InnerClass.class.getName());
|
||||
// No coops logging on info level.
|
||||
analyzeOutputOff(pb);
|
||||
|
||||
pb = ProcessTools.createJavaProcessBuilder("-XX:+UseCompressedOops",
|
||||
"-Xlog:gc+heap+coops=info",
|
||||
"-XX:-PrintCompressedOopsMode",
|
||||
"-Xlog:gc+heap+coops=off",
|
||||
InnerClass.class.getName());
|
||||
analyzeOutputOff(pb);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user