hotspot/src/share/vm/runtime/thread.cpp
changeset 10678 ecb473e90f9b
parent 10565 dc90c239f4ec
parent 10670 4ea0e7d2ffbc
child 10740 a6fdc8d6c13c
--- a/hotspot/src/share/vm/runtime/thread.cpp	Fri Sep 30 22:54:43 2011 -0700
+++ b/hotspot/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