8147564: [JVMCI] remove unused method CodeCacheProvider.needsDataPatch
authorrschatz
Mon, 18 Jan 2016 17:31:14 +0100
changeset 35580 1225225bd34e
parent 35579 d21d5a0db03f
child 35581 dd47cf4734f2
child 35587 173b2da63cc3
8147564: [JVMCI] remove unused method CodeCacheProvider.needsDataPatch Reviewed-by: twisti
hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java
hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java
--- a/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java	Tue Jan 19 17:52:52 2016 +0000
+++ b/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java	Mon Jan 18 17:31:14 2016 +0100
@@ -27,7 +27,6 @@
 import jdk.vm.ci.code.CompilationResult.Mark;
 import jdk.vm.ci.code.DataSection.Data;
 import jdk.vm.ci.meta.Constant;
-import jdk.vm.ci.meta.JavaConstant;
 import jdk.vm.ci.meta.ResolvedJavaMethod;
 import jdk.vm.ci.meta.SpeculationLog;
 
@@ -122,12 +121,6 @@
     int getMinimumOutgoingSize();
 
     /**
-     * Determines if a {@link DataPatch} should be created for a given primitive constant that is
-     * part of a {@link CompilationResult}. A data patch is always created for an object constant.
-     */
-    boolean needsDataPatch(JavaConstant constant);
-
-    /**
      * Create a {@link Data} item for one or more {@link Constant Constants}, that can be used in a
      * {@link DataPatch}. If more than one {@link Constant} is given, then they are tightly packed
      * into a single {@link Data} item.
--- a/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java	Tue Jan 19 17:52:52 2016 +0000
+++ b/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java	Mon Jan 18 17:31:14 2016 +0100
@@ -173,10 +173,6 @@
         runtime.getCompilerToVM().invalidateInstalledCode(installedCode);
     }
 
-    public boolean needsDataPatch(JavaConstant constant) {
-        return constant instanceof HotSpotMetaspaceConstant;
-    }
-
     private Data createSingleDataItem(Constant constant) {
         int size;
         DataBuilder builder;