src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.code/src/org/graalvm/compiler/code/CompilationResult.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.code/src/org/graalvm/compiler/code/CompilationResult.java

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.code/src/org/graalvm/compiler/code/CompilationResult.java

Print this page

        

*** 32,41 **** --- 32,42 ---- import java.util.Collections; import java.util.List; import java.util.Objects; import org.graalvm.compiler.graph.NodeSourcePosition; + import org.graalvm.util.EconomicSet; import jdk.vm.ci.code.DebugInfo; import jdk.vm.ci.code.StackSlot; import jdk.vm.ci.code.site.Call; import jdk.vm.ci.code.site.ConstantReference;
*** 361,374 **** * Sets the fields that were referenced from the bytecodes that were used as input to the * compilation. * * @param accessedFields the collected set of fields accessed during compilation */ ! public void setFields(Collection<ResolvedJavaField> accessedFields) { ! assert accessedFields != null; fields = accessedFields.toArray(new ResolvedJavaField[accessedFields.size()]); } /** * Gets the fields that were referenced from bytecodes that were used as input to the * compilation. * --- 362,376 ---- * Sets the fields that were referenced from the bytecodes that were used as input to the * compilation. * * @param accessedFields the collected set of fields accessed during compilation */ ! public void setFields(EconomicSet<ResolvedJavaField> accessedFields) { ! if (accessedFields != null) { fields = accessedFields.toArray(new ResolvedJavaField[accessedFields.size()]); } + } /** * Gets the fields that were referenced from bytecodes that were used as input to the * compilation. *
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.code/src/org/graalvm/compiler/code/CompilationResult.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File