Commit 42968db 1 parent 2fd7943 commit 42968db Copy full SHA for 42968db
File tree 2 files changed +5
-5
lines changed
src/hotspot/share/runtime
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1431,7 +1431,7 @@ bool ObjectMonitor::check_owner(TRAPS) {
1431
1431
1432
1432
static void post_monitor_wait_event (EventJavaMonitorWait* event,
1433
1433
ObjectMonitor* monitor,
1434
- jlong notifier_tid,
1434
+ uint64_t notifier_tid,
1435
1435
jlong timeout,
1436
1436
bool timedout) {
1437
1437
assert (event != NULL , " invariant" );
@@ -2243,7 +2243,7 @@ void ObjectMonitor::print_debug_style_on(outputStream* st) const {
2243
2243
st->print_cr (" [%d] = '\\ 0'" , (int )sizeof (_pad_buf0) - 1 );
2244
2244
st->print_cr (" }" );
2245
2245
st->print_cr (" _owner = " INTPTR_FORMAT, p2i (owner_raw ()));
2246
- st->print_cr (" _previous_owner_tid = " INTPTR_FORMAT , _previous_owner_tid);
2246
+ st->print_cr (" _previous_owner_tid = " UINT64_FORMAT , _previous_owner_tid);
2247
2247
st->print_cr (" _pad_buf1 = {" );
2248
2248
st->print_cr (" [0] = '\\ 0'" );
2249
2249
st->print_cr (" ..." );
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class ObjectWaiter : public StackObj {
47
47
ObjectWaiter* volatile _next;
48
48
ObjectWaiter* volatile _prev;
49
49
JavaThread* _thread;
50
- jlong _notifier_tid;
50
+ uint64_t _notifier_tid;
51
51
ParkEvent * _event;
52
52
volatile int _notified;
53
53
volatile TStates TState;
@@ -148,13 +148,13 @@ class ObjectMonitor : public CHeapObj<mtInternal> {
148
148
// Used by async deflation as a marker in the _owner field:
149
149
#define DEFLATER_MARKER reinterpret_cast <void *>(-1 )
150
150
void * volatile _owner; // pointer to owning thread OR BasicLock
151
- volatile uintptr_t _previous_owner_tid; // thread id of the previous owner of the monitor
151
+ volatile uint64_t _previous_owner_tid; // thread id of the previous owner of the monitor
152
152
// Separate _owner and _next_om on different cache lines since
153
153
// both can have busy multi-threaded access. _previous_owner_tid is only
154
154
// changed by ObjectMonitor::exit() so it is a good choice to share the
155
155
// cache line with _owner.
156
156
DEFINE_PAD_MINUS_SIZE (1 , OM_CACHE_LINE_SIZE, sizeof (void * volatile ) +
157
- sizeof (volatile uintptr_t ));
157
+ sizeof (volatile uint64_t ));
158
158
ObjectMonitor* _next_om; // Next ObjectMonitor* linkage
159
159
volatile intx _recursions; // recursion count, 0 for first entry
160
160
ObjectWaiter* volatile _EntryList; // Threads blocked on entry or reentry.
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Jun 24, 2021
Review
Issues