test/testlibrary/whitebox/sun/hotspot/code/CodeBlob.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/testlibrary/whitebox/sun/hotspot/code/CodeBlob.java

test/testlibrary/whitebox/sun/hotspot/code/CodeBlob.java

Print this page
rev 7383 : 8059550: JEP-JDK-8043304: Test task: segment overflow w/ empty others
Reviewed-by: iigantyev

*** 37,46 **** --- 37,53 ---- for (int i = 0, n = result.length; i < n; ++i) { result[i] = new CodeBlob((Object[]) obj[i]); } return result; } + public static CodeBlob getCodeBlob(long addr) { + Object[] obj = WB.getCodeBlob(addr); + if (obj == null) { + return null; + } + return new CodeBlob(obj); + } protected CodeBlob(Object[] obj) { assert obj.length == 3; name = (String) obj[0]; size = (Integer) obj[1]; code_blob_type = BlobType.values()[(Integer) obj[2]];
test/testlibrary/whitebox/sun/hotspot/code/CodeBlob.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File