< prev index next >

src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotInstalledCode.java

Print this page

        

*** 21,31 **** * questions. */ package jdk.vm.ci.hotspot; import static jdk.vm.ci.hotspot.UnsafeAccess.UNSAFE; - import jdk.vm.ci.code.InstalledCode; import jdk.vm.ci.inittimer.SuppressFBWarnings; import sun.misc.Unsafe; /** --- 21,30 ----
*** 57,87 **** */ public int getSize() { return size; } - /** - * @return a copy of this code blob if it is {@linkplain #isValid() valid}, null otherwise. - */ - public byte[] getBlob() { - if (!isValid()) { - return null; - } - byte[] blob = new byte[size]; - UNSAFE.copyMemory(null, getAddress(), blob, Unsafe.ARRAY_BYTE_BASE_OFFSET, size); - return blob; - } - @Override public abstract String toString(); @Override public long getStart() { return codeStart; } - @Override public long getCodeSize() { return codeSize; } @Override --- 56,73 ----
< prev index next >