hotspot/src/share/vm/runtime/thread.cpp
changeset 10670 4ea0e7d2ffbc
parent 10546 e79347eebbc5
child 10678 ecb473e90f9b
--- a/hotspot/src/share/vm/runtime/thread.cpp	Thu Sep 22 07:18:51 2011 -0400
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Thu Sep 22 10:57:37 2011 -0700
@@ -749,8 +749,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.");
@@ -3905,8 +3906,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