mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8220351: Cross-modifying code
Reviewed-by: rrich, mdoerr, dholmes, eosterlund
This commit is contained in:
parent
dbe0da648a
commit
76cdc8016f
21 changed files with 96 additions and 13 deletions
|
@ -282,6 +282,7 @@ class ThreadBlockInVM : public ThreadStateTransition {
|
|||
}
|
||||
~ThreadBlockInVM() {
|
||||
trans_and_fence(_thread_blocked, _thread_in_vm);
|
||||
OrderAccess::cross_modify_fence();
|
||||
// We don't need to clear_walkable because it will happen automagically when we return to java
|
||||
}
|
||||
};
|
||||
|
@ -336,6 +337,8 @@ class ThreadBlockInVMWithDeadlockCheck : public ThreadStateTransition {
|
|||
|
||||
_thread->set_thread_state(_thread_in_vm);
|
||||
CHECK_UNHANDLED_OOPS_ONLY(_thread->clear_unhandled_oops();)
|
||||
|
||||
OrderAccess::cross_modify_fence();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue