test/testlibrary/whitebox/sun/hotspot/code/BlobType.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff test/testlibrary/whitebox/sun/hotspot/code/BlobType.java
test/testlibrary/whitebox/sun/hotspot/code/BlobType.java
Print this page
rev 7383 : 8059550: JEP-JDK-8043304: Test task: segment overflow w/ empty others
Reviewed-by: thartmann, iigantyev
*** 34,44 ****
// Execution level 1 and 4 (non-profiled) nmethods (including native nmethods)
MethodNonProfiled(0, "CodeHeap 'non-profiled nmethods'"),
// Execution level 2 and 3 (profiled) nmethods
MethodProfiled(1, "CodeHeap 'profiled nmethods'"),
// Non-nmethods like Buffers, Adapters and Runtime Stubs
! NonNMethod(2, "CodeHeap 'non-nmethods'"),
// All types (No code cache segmentation)
All(3, "CodeCache");
public final int id;
private final String beanName;
--- 34,50 ----
// Execution level 1 and 4 (non-profiled) nmethods (including native nmethods)
MethodNonProfiled(0, "CodeHeap 'non-profiled nmethods'"),
// Execution level 2 and 3 (profiled) nmethods
MethodProfiled(1, "CodeHeap 'profiled nmethods'"),
// Non-nmethods like Buffers, Adapters and Runtime Stubs
! NonNMethod(2, "CodeHeap 'non-nmethods'") {
! @Override
! public boolean allowTypeWhenOverflow(BlobType type) {
! return super.allowTypeWhenOverflow(type)
! || type == BlobType.MethodNonProfiled;
! }
! },
// All types (No code cache segmentation)
All(3, "CodeCache");
public final int id;
private final String beanName;
*** 55,64 ****
--- 61,75 ----
return bean;
}
}
return null;
}
+
+ public boolean allowTypeWhenOverflow(BlobType type) {
+ return type == this;
+ }
+
public static EnumSet<BlobType> getAvailable() {
WhiteBox whiteBox = WhiteBox.getWhiteBox();
if (!whiteBox.getBooleanVMFlag("SegmentedCodeCache")) {
// only All for non segmented world
return EnumSet.of(All);
test/testlibrary/whitebox/sun/hotspot/code/BlobType.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File