< prev index next > src/hotspot/share/runtime/mutex.hpp
Print this page
void raw_set_owner(Thread* new_owner) { Atomic::store(&_owner, new_owner); }
protected: // Monitor-Mutex metadata
PlatformMonitor _lock; // Native monitor implementation
const char* _name; // Name of mutex/monitor
+ int _id; // ID for named mutexes
// Debugging fields for naming, deadlock detection, etc. (some only used in debug mode)
#ifndef PRODUCT
bool _allow_vm_block;
#endif
void set_owner(Thread* owner) { set_owner_implementation(owner); }
bool owned_by_self() const;
const char *name() const { return _name; }
+ int id() const { return _id; }
+ // void set_id(int id) { _id = id; }
+
+ static const char* id2name(int id);
+
void print_on_error(outputStream* st) const;
#ifndef PRODUCT
void print_on(outputStream* st) const;
void print() const;
#endif
< prev index next >