< prev index next >

src/hotspot/os/posix/os_posix.cpp

Print this page

        

*** 1898,1908 **** int v; // atomically decrement _event for (;;) { v = _event; ! if (Atomic::cmpxchg(v - 1, &_event, v) == v) break; } guarantee(v >= 0, "invariant"); if (v == 0) { // Do this the hard way by blocking ... int status = pthread_mutex_lock(_mutex); --- 1898,1908 ---- int v; // atomically decrement _event for (;;) { v = _event; ! if (Atomic::cmpxchg(&_event, v, v - 1) == v) break; } guarantee(v >= 0, "invariant"); if (v == 0) { // Do this the hard way by blocking ... int status = pthread_mutex_lock(_mutex);
*** 1938,1948 **** int v; // atomically decrement _event for (;;) { v = _event; ! if (Atomic::cmpxchg(v - 1, &_event, v) == v) break; } guarantee(v >= 0, "invariant"); if (v == 0) { // Do this the hard way by blocking ... struct timespec abst; --- 1938,1948 ---- int v; // atomically decrement _event for (;;) { v = _event; ! if (Atomic::cmpxchg(&_event, v, v - 1) == v) break; } guarantee(v >= 0, "invariant"); if (v == 0) { // Do this the hard way by blocking ... struct timespec abst;
< prev index next >