src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMetaData.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Cdiff src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMetaData.java

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

Print this page

        

*** 20,59 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.vm.ci.hotspot; ! /** ! * Encapsulates the VM metadata generated by {@link CompilerToVM#getMetadata}. ! */ public class HotSpotMetaData { ! @SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "field is set by the native part") private byte[] pcDescBytes; ! @SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "field is set by the native part") private byte[] scopesDescBytes; ! @SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "field is set by the native part") private byte[] relocBytes; ! @SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "field is set by the native part") private byte[] exceptionBytes; ! @SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "field is set by the native part") private byte[] oopMaps; ! @SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "field is set by the native part") private String[] metadata; public byte[] pcDescBytes() { ! return pcDescBytes != null ? pcDescBytes : new byte[0]; } public byte[] scopesDescBytes() { ! return scopesDescBytes != null ? scopesDescBytes : new byte[0]; } public byte[] relocBytes() { ! return relocBytes != null ? relocBytes : new byte[0]; } public byte[] exceptionBytes() { ! return exceptionBytes != null ? exceptionBytes : new byte[0]; } public byte[] oopMaps() { ! return oopMaps != null ? oopMaps : new byte[0]; } public String[] metadataEntries() { ! return metadata != null ? metadata : new String[0]; } } --- 20,72 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.vm.ci.hotspot; ! import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime; ! ! import jdk.vm.ci.code.TargetDescription; ! public class HotSpotMetaData { ! private byte[] pcDescBytes; ! private byte[] scopesDescBytes; ! private byte[] relocBytes; ! private byte[] exceptionBytes; ! private byte[] oopMaps; ! private String[] metadata; ! ! public HotSpotMetaData(TargetDescription target, HotSpotCompiledCode compiledMethod) { ! // Assign the fields default values... ! pcDescBytes = new byte[0]; ! scopesDescBytes = new byte[0]; ! relocBytes = new byte[0]; ! exceptionBytes = new byte[0]; ! oopMaps = new byte[0]; ! metadata = new String[0]; ! // ...some of them will be overwritten by the VM: ! runtime().getCompilerToVM().getMetadata(target, compiledMethod, this); ! } public byte[] pcDescBytes() { ! return pcDescBytes; } public byte[] scopesDescBytes() { ! return scopesDescBytes; } public byte[] relocBytes() { ! return relocBytes; } public byte[] exceptionBytes() { ! return exceptionBytes; } public byte[] oopMaps() { ! return oopMaps; } public String[] metadataEntries() { ! return metadata; } }
src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMetaData.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File