equal
deleted
inserted
replaced
63 int _magic; |
63 int _magic; |
64 char* _name; |
64 char* _name; |
65 // JVMTI_RM_MAGIC is set in contructor and unset in destructor. |
65 // JVMTI_RM_MAGIC is set in contructor and unset in destructor. |
66 enum { JVMTI_RM_MAGIC = (int)(('T' << 24) | ('I' << 16) | ('R' << 8) | 'M') }; |
66 enum { JVMTI_RM_MAGIC = (int)(('T' << 24) | ('I' << 16) | ('R' << 8) | 'M') }; |
67 |
67 |
|
68 // Helpers for queue management isolation |
|
69 void enqueue_waiter(QNode& node); |
|
70 void dequeue_waiter(QNode& node); |
|
71 |
|
72 // Mostly low-level implementation routines |
68 void simple_enter(Thread* self); |
73 void simple_enter(Thread* self); |
69 void simple_exit(Thread* self); |
74 void simple_exit(Thread* self); |
70 int simple_wait(Thread* self, jlong millis); |
75 int simple_wait(Thread* self, jlong millis); |
71 void simple_notify(Thread* self, bool all); |
76 void simple_notify(Thread* self, bool all); |
72 |
77 |
90 Thread* owner() const { return _owner; } |
95 Thread* owner() const { return _owner; } |
91 void set_owner(Thread* owner) { _owner = owner; } |
96 void set_owner(Thread* owner) { _owner = owner; } |
92 int recursions() const { return _recursions; } |
97 int recursions() const { return _recursions; } |
93 void raw_enter(Thread* self); |
98 void raw_enter(Thread* self); |
94 int raw_exit(Thread* self); |
99 int raw_exit(Thread* self); |
95 int raw_wait(jlong millis, bool interruptible, Thread* self); |
100 int raw_wait(jlong millis, Thread* self); |
96 int raw_notify(Thread* self); |
101 int raw_notify(Thread* self); |
97 int raw_notifyAll(Thread* self); |
102 int raw_notifyAll(Thread* self); |
98 int magic() const { return _magic; } |
103 int magic() const { return _magic; } |
99 const char* get_name() const { return _name; } |
104 const char* get_name() const { return _name; } |
100 bool is_valid(); |
105 bool is_valid(); |