< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/HotSpotReplacementsUtil.java
Print this page
rev 49651 : [mq]: renaming2
*** 176,190 ****
@Fold
public static int threadTlabTopOffset(@InjectedParameter GraalHotSpotVMConfig config) {
return config.threadTlabTopOffset();
}
! public static final LocationIdentity TLAB_END_LOCATION = NamedLocationIdentity.mutable("TlabEnd");
@Fold
! static int threadTlabEndOffset(@InjectedParameter GraalHotSpotVMConfig config) {
! return config.threadTlabEndOffset();
}
public static final LocationIdentity TLAB_START_LOCATION = NamedLocationIdentity.mutable("TlabStart");
@Fold
--- 176,190 ----
@Fold
public static int threadTlabTopOffset(@InjectedParameter GraalHotSpotVMConfig config) {
return config.threadTlabTopOffset();
}
! public static final LocationIdentity TLAB_FAST_PATH_END_LOCATION = NamedLocationIdentity.mutable("TlabFastPathEnd");
@Fold
! static int threadTlabFastPathEndOffset(@InjectedParameter GraalHotSpotVMConfig config) {
! return config.threadTlabFastPathEndOffset();
}
public static final LocationIdentity TLAB_START_LOCATION = NamedLocationIdentity.mutable("TlabStart");
@Fold
*** 243,254 ****
public static Word readTlabTop(Word thread) {
return thread.readWord(threadTlabTopOffset(INJECTED_VMCONFIG), TLAB_TOP_LOCATION);
}
! public static Word readTlabEnd(Word thread) {
! return thread.readWord(threadTlabEndOffset(INJECTED_VMCONFIG), TLAB_END_LOCATION);
}
public static Word readTlabStart(Word thread) {
return thread.readWord(threadTlabStartOffset(INJECTED_VMCONFIG), TLAB_START_LOCATION);
}
--- 243,254 ----
public static Word readTlabTop(Word thread) {
return thread.readWord(threadTlabTopOffset(INJECTED_VMCONFIG), TLAB_TOP_LOCATION);
}
! public static Word readTlabFastPathEnd(Word thread) {
! return thread.readWord(threadTlabFastPathEndOffset(INJECTED_VMCONFIG), TLAB_FAST_PATH_END_LOCATION);
}
public static Word readTlabStart(Word thread) {
return thread.readWord(threadTlabStartOffset(INJECTED_VMCONFIG), TLAB_START_LOCATION);
}
*** 259,269 ****
@SuppressFBWarnings(value = "NP_NULL_PARAM_DEREF_NONVIRTUAL", justification = "foldable method parameters are injected")
public static void initializeTlab(Word thread, Word start, Word end) {
thread.writeWord(threadTlabStartOffset(INJECTED_VMCONFIG), start, TLAB_START_LOCATION);
thread.writeWord(threadTlabTopOffset(INJECTED_VMCONFIG), start, TLAB_TOP_LOCATION);
! thread.writeWord(threadTlabEndOffset(INJECTED_VMCONFIG), end, TLAB_END_LOCATION);
}
/**
* Clears the pending exception for the given thread.
*
--- 259,269 ----
@SuppressFBWarnings(value = "NP_NULL_PARAM_DEREF_NONVIRTUAL", justification = "foldable method parameters are injected")
public static void initializeTlab(Word thread, Word start, Word end) {
thread.writeWord(threadTlabStartOffset(INJECTED_VMCONFIG), start, TLAB_START_LOCATION);
thread.writeWord(threadTlabTopOffset(INJECTED_VMCONFIG), start, TLAB_TOP_LOCATION);
! thread.writeWord(threadTlabFastPathEndOffset(INJECTED_VMCONFIG), end, TLAB_FAST_PATH_END_LOCATION);
}
/**
* Clears the pending exception for the given thread.
*
< prev index next >