mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8167108: inconsistent handling of SR_lock can lead to crashes
Add Thread Safe Memory Reclamation (Thread-SMR) mechanism. Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com> Co-authored-by: Robbin Ehn <robbin.ehn@oracle.com> Reviewed-by: coleenp, dcubed, dholmes, eosterlund, gthornbr, kbarrett, rehn, sspitsyn, stefank
This commit is contained in:
parent
cd0c6d0fae
commit
0dff96ff0b
67 changed files with 4220 additions and 995 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "runtime/perfData.hpp"
|
||||
|
||||
class ObjectMonitor;
|
||||
class ThreadsList;
|
||||
|
||||
struct DeflateMonitorCounters {
|
||||
int nInuse; // currently associated with objects
|
||||
|
@ -125,7 +126,7 @@ class ObjectSynchronizer : AllStatic {
|
|||
static bool current_thread_holds_lock(JavaThread* thread, Handle h_obj);
|
||||
static LockOwnership query_lock_ownership(JavaThread * self, Handle h_obj);
|
||||
|
||||
static JavaThread* get_lock_owner(Handle h_obj, bool doLock);
|
||||
static JavaThread* get_lock_owner(ThreadsList * t_list, Handle h_obj);
|
||||
|
||||
// JNI detach support
|
||||
static void release_monitors_owned_by_thread(TRAPS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue