The test (and also ClhsdbCDSCore ) use the following to check if CDS is on:
List<String> cmds = List.of("flags UseSharedSpaces");
String useSharedSpacesOutput = test.run(theApp.getPid(), cmds,
null, null);
....
if (!useSharedSpacesOutput.contains("true")) {
// CDS archive is not mapped. Skip the rest of the test.
But the output looks like this:
hsdb> hsdb> + verbose true
hsdb> + flags UseSharedSpaces
UseSharedSpaces = false command line
hsdb> + quit
I think at one point the "if" worked, but the "+ verbose true" part of the log must have been added recently to cause the "if" to determine the wrong result.
List<String> cmds = List.of("flags UseSharedSpaces");
String useSharedSpacesOutput = test.run(theApp.getPid(), cmds,
null, null);
....
if (!useSharedSpacesOutput.contains("true")) {
// CDS archive is not mapped. Skip the rest of the test.
But the output looks like this:
hsdb> hsdb> + verbose true
hsdb> + flags UseSharedSpaces
UseSharedSpaces = false command line
hsdb> + quit
I think at one point the "if" worked, but the "+ verbose true" part of the log must have been added recently to cause the "if" to determine the wrong result.
- duplicates
-
JDK-8232069 Enable CDS even when UseCompressedClassPointers and/or UseCompressedOops are false
-
- Resolved
-
-
JDK-8240563 [TESTBUG] WB_IsCDSIncludedInVmBuild should support uncompressed oops/klasses
-
- Resolved
-
- relates to
-
JDK-8240698 LingeredApp does not pass getTestJavaOpts() to the children process if vmArguments is already specified
-
- Resolved
-
-
JDK-8240840 Rollback whitebox.cpp in push 8240691
-
- Resolved
-