mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 08:34:30 +02:00
8210259: [testbug] IncompatibleOptions.java fails if VM configured without ZGC
Reviewed-by: pliden, kbarrett
This commit is contained in:
parent
c8d641d148
commit
73537725b1
2 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,7 @@ import sun.hotspot.WhiteBox;
|
|||
*/
|
||||
public enum GC {
|
||||
/*
|
||||
* Enum values much match CollectedHeap::Name
|
||||
* Enum values must match CollectedHeap::Name
|
||||
*/
|
||||
Serial(1),
|
||||
Parallel(2),
|
||||
|
@ -49,7 +49,7 @@ public enum GC {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return true if this GC is supported by the VM
|
||||
* @return true if this GC is supported by the VM, i.e., it is built into the VM.
|
||||
*/
|
||||
public boolean isSupported() {
|
||||
return WB.isGCSupported(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue