8147564: [JVMCI] remove unused method CodeCacheProvider.needsDataPatch
Reviewed-by: twisti
This commit is contained in:
parent
6b826df140
commit
fdb6716fd4
@ -27,7 +27,6 @@ import jdk.vm.ci.code.CompilationResult.DataPatch;
|
|||||||
import jdk.vm.ci.code.CompilationResult.Mark;
|
import jdk.vm.ci.code.CompilationResult.Mark;
|
||||||
import jdk.vm.ci.code.DataSection.Data;
|
import jdk.vm.ci.code.DataSection.Data;
|
||||||
import jdk.vm.ci.meta.Constant;
|
import jdk.vm.ci.meta.Constant;
|
||||||
import jdk.vm.ci.meta.JavaConstant;
|
|
||||||
import jdk.vm.ci.meta.ResolvedJavaMethod;
|
import jdk.vm.ci.meta.ResolvedJavaMethod;
|
||||||
import jdk.vm.ci.meta.SpeculationLog;
|
import jdk.vm.ci.meta.SpeculationLog;
|
||||||
|
|
||||||
@ -121,12 +120,6 @@ public interface CodeCacheProvider {
|
|||||||
*/
|
*/
|
||||||
int getMinimumOutgoingSize();
|
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
|
* 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
|
* {@link DataPatch}. If more than one {@link Constant} is given, then they are tightly packed
|
||||||
|
@ -173,10 +173,6 @@ public class HotSpotCodeCacheProvider implements CodeCacheProvider {
|
|||||||
runtime.getCompilerToVM().invalidateInstalledCode(installedCode);
|
runtime.getCompilerToVM().invalidateInstalledCode(installedCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean needsDataPatch(JavaConstant constant) {
|
|
||||||
return constant instanceof HotSpotMetaspaceConstant;
|
|
||||||
}
|
|
||||||
|
|
||||||
private Data createSingleDataItem(Constant constant) {
|
private Data createSingleDataItem(Constant constant) {
|
||||||
int size;
|
int size;
|
||||||
DataBuilder builder;
|
DataBuilder builder;
|
||||||
|
Loading…
Reference in New Issue
Block a user