Skip to content

Commit

Permalink
rename changeCompilerThreadCanCallJava to updateCompilerThreadCanCall…
Browse files Browse the repository at this point in the history
…Java
  • Loading branch information
dougxc committed Sep 25, 2024
1 parent c3e23c0 commit 882cec4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ C2V_VMENTRY_NULL(jobject, asResolvedJavaMethod, (JNIEnv* env, jobject, jobject e
return JVMCIENV->get_jobject(result);
}

C2V_VMENTRY_0(jboolean, changeCompilerThreadCanCallJava, (JNIEnv* env, jobject, jboolean newState))
C2V_VMENTRY_0(jboolean, updateCompilerThreadCanCallJava, (JNIEnv* env, jobject, jboolean newState))
return CompilerThreadCanCallJava::update(THREAD, newState) != nullptr;
C2V_END

Expand Down Expand Up @@ -3392,7 +3392,7 @@ JNINativeMethod CompilerToVM::methods[] = {
{CC "notifyCompilerPhaseEvent", CC "(JIII)V", FN_PTR(notifyCompilerPhaseEvent)},
{CC "notifyCompilerInliningEvent", CC "(I" HS_METHOD2 HS_METHOD2 "ZLjava/lang/String;I)V", FN_PTR(notifyCompilerInliningEvent)},
{CC "getOopMapAt", CC "(" HS_METHOD2 "I[J)V", FN_PTR(getOopMapAt)},
{CC "changeCompilerThreadCanCallJava", CC "(Z)Z", FN_PTR(changeCompilerThreadCanCallJava)},
{CC "updateCompilerThreadCanCallJava", CC "(Z)Z", FN_PTR(updateCompilerThreadCanCallJava)},
};

int CompilerToVM::methods_count() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public CompilerThreadCanCallJavaScope(boolean newState) {
this.state = newState;
this.thread = Thread.currentThread();
CompilerToVM vm = HotSpotJVMCIRuntime.runtime().getCompilerToVM();
if (vm.changeCompilerThreadCanCallJava(newState)) {
if (vm.updateCompilerThreadCanCallJava(newState)) {
this.vm = vm;
} else {
this.vm = null;
Expand All @@ -78,7 +78,7 @@ public void close() {
}

if (vm != null) {
vm.changeCompilerThreadCanCallJava(!state);
vm.updateCompilerThreadCanCallJava(!state);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1521,5 +1521,5 @@ void getOopMapAt(HotSpotResolvedJavaMethodImpl method, int bci, long[] oopMap) {
*
* @returns false if no change was made, otherwise true
*/
native boolean changeCompilerThreadCanCallJava(boolean newState);
native boolean updateCompilerThreadCanCallJava(boolean newState);
}

0 comments on commit 882cec4

Please sign in to comment.