Mercurial > hg > graal-compiler
diff src/share/vm/runtime/thread.cpp @ 3987:fd65bc7c09b6
Merge
author | tonyp |
---|---|
date | Thu, 06 Oct 2011 13:28:09 -0400 |
parents | f08d439fab8c 4dfb2df418f2 |
children | 23a1c8de9d51 |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp Fri Sep 30 22:54:43 2011 -0700 +++ b/src/share/vm/runtime/thread.cpp Thu Oct 06 13:28:09 2011 -0400 @@ -753,8 +753,9 @@ jint thread_parity = _oops_do_parity; if (thread_parity != strong_roots_parity) { jint res = Atomic::cmpxchg(strong_roots_parity, &_oops_do_parity, thread_parity); - if (res == thread_parity) return true; - else { + if (res == thread_parity) { + return true; + } else { guarantee(res == strong_roots_parity, "Or else what?"); assert(SharedHeap::heap()->n_par_threads() > 0, "Should only fail when parallel."); @@ -3909,8 +3910,9 @@ } } VMThread* vmt = VMThread::vm_thread(); - if (vmt->claim_oops_do(is_par, cp)) + if (vmt->claim_oops_do(is_par, cp)) { vmt->oops_do(f, cf); + } } #ifndef SERIALGC