equal
deleted
inserted
replaced
416 } |
416 } |
417 |
417 |
418 static volatile int jfr_shutdown_lock = 0; |
418 static volatile int jfr_shutdown_lock = 0; |
419 |
419 |
420 static bool guard_reentrancy() { |
420 static bool guard_reentrancy() { |
421 return Atomic::cmpxchg(1, &jfr_shutdown_lock, 0) == 0; |
421 return Atomic::cmpxchg(&jfr_shutdown_lock, 0, 1) == 0; |
422 } |
422 } |
423 |
423 |
424 class JavaThreadInVM : public StackObj { |
424 class JavaThreadInVM : public StackObj { |
425 private: |
425 private: |
426 JavaThread* const _jt; |
426 JavaThread* const _jt; |