Skip to content

Commit

Permalink
[Misc] Remove un-impletemented functions in OptoRuntime.
Browse files Browse the repository at this point in the history
Summary:
1. Remove un-impletemented functions in OptoRuntime.

Test Plan: jtreg:com/jdk/alibaba/wisp2/

Reviewed-by: yulei

Issue:
dragonwell-project#153
  • Loading branch information
nebula-xm authored and ZhaiMo15 committed Sep 15, 2023
1 parent 238aedd commit 4de4fa3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ bool OptoRuntime::generate(ciEnv* env) {
gen(env, _multianewarray5_Java , multianewarray5_Type , multianewarray5_C , 0 , true, false);
gen(env, _multianewarrayN_Java , multianewarrayN_Type , multianewarrayN_C , 0 , true, false);
gen(env, _complete_monitor_locking_Java , complete_monitor_enter_Type , SharedRuntime::complete_monitor_locking_C, 0, false, false);
gen(env, _complete_wisp_monitor_unlocking_Java , complete_wisp_monitor_exit_Type , complete_wisp_monitor_unlocking_C_opt, 0, false, false);
gen(env, _complete_wisp_monitor_unlocking_Java , complete_wisp_monitor_exit_Type , OptoRuntime::complete_wisp_monitor_unlocking_C, 0, false, false);
gen(env, _monitor_notify_Java , monitor_notify_Type , monitor_notify_C , 0 , false, false);
gen(env, _monitor_notifyAll_Java , monitor_notify_Type , monitor_notifyAll_C , 0 , false, false);
gen(env, _rethrow_Java , rethrow_Type , rethrow_C , 2 , true , true );
Expand Down Expand Up @@ -409,7 +409,7 @@ JRT_ENTRY(void, OptoRuntime::multianewarrayN_C(Klass* elem_type, arrayOopDesc* d
current->set_vm_result(obj);
JRT_END

JRT_ENTRY_NO_ASYNC(void, OptoRuntime::complete_wisp_monitor_unlocking_C_opt(oopDesc* obj, BasicLock* lock, JavaThread* current))
JRT_ENTRY_NO_ASYNC(void, OptoRuntime::complete_wisp_monitor_unlocking_C(oopDesc* obj, BasicLock* lock, JavaThread* current))
assert(EnableCoroutine, "Coroutine is disabled");
Handle h_obj(current, obj);
SharedRuntime::monitor_exit_helper(h_obj, lock, current);
Expand Down
6 changes: 1 addition & 5 deletions src/hotspot/share/opto/runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,8 @@ class OptoRuntime : public AllStatic {

public:
// Slow-path Locking and Unlocking
static void complete_monitor_locking_C(oopDesc* obj, BasicLock* lock, JavaThread* thread);
static void complete_monitor_unlocking_C(oopDesc* obj, BasicLock* lock, JavaThread* thread);
static void complete_wisp_monitor_unlocking_C(JavaThread* thread, oopDesc* obj, BasicLock* lock);
static void complete_wisp_proxy_monitor_unlocking_C(oopDesc* obj, BasicLock* lock, JavaThread* thread);
static void complete_wisp_monitor_unlocking_C(oopDesc* obj, BasicLock* lock, JavaThread* thread);

static void complete_wisp_monitor_unlocking_C_opt(oopDesc* obj, BasicLock* lock, JavaThread* current);
static void monitor_notify_C(oopDesc* obj, JavaThread* current);
static void monitor_notifyAll_C(oopDesc* obj, JavaThread* current);

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/sharedRuntime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ class SharedRuntime: AllStatic {
// Slow-path Locking and Unlocking
static void complete_monitor_locking_C(oopDesc* obj, BasicLock* lock, JavaThread* current);
static void complete_monitor_unlocking_C(oopDesc* obj, BasicLock* lock, JavaThread* current);
// complete_wisp_monitor_unlocking_C is for call_VM. It is not for opto.
static void complete_wisp_monitor_unlocking_C(JavaThread* current, oopDesc* obj, BasicLock* lock);
static void complete_wisp_proxy_monitor_unlocking_C(oopDesc* obj, BasicLock* lock, JavaThread* current);

Expand Down

0 comments on commit 4de4fa3

Please sign in to comment.