8036547: test/runtime/CompressedOops/CompressedClassPointers.java fails with product build since -XX:+PrintMiscellaneous is a debug only flag
Use PrintCompressedOopsMode and these other flags that match printing compressed oop information Reviewed-by: ctornqvi, sla
This commit is contained in:
parent
1a95f3a409
commit
e8d4b7aee3
@ -1699,7 +1699,8 @@ void Arguments::set_heap_size() {
|
||||
// HeapBaseMinAddress can be greater than default but not less than.
|
||||
if (!FLAG_IS_DEFAULT(HeapBaseMinAddress)) {
|
||||
if (HeapBaseMinAddress < DefaultHeapBaseMinAddress) {
|
||||
if (PrintMiscellaneous && Verbose) { // matches compressed oops printing flags
|
||||
// matches compressed oops printing flags
|
||||
if (PrintCompressedOopsMode || (PrintMiscellaneous && Verbose)) {
|
||||
jio_fprintf(defaultStream::error_stream(),
|
||||
"HeapBaseMinAddress must be at least " UINTX_FORMAT
|
||||
" (" UINTX_FORMAT "G) which is greater than value given "
|
||||
|
@ -83,8 +83,8 @@ public class CompressedClassPointers {
|
||||
public static void heapBaseMinAddressTest() throws Exception {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||
"-XX:HeapBaseMinAddress=1m",
|
||||
"-XX:+PrintMiscellaneous",
|
||||
"-XX:+Verbose",
|
||||
"-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-version");
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldContain("HeapBaseMinAddress must be at least");
|
||||
|
Loading…
Reference in New Issue
Block a user