X-Git-Url: http://plrg.eecs.uci.edu/git/?p=IRC.git;a=blobdiff_plain;f=Robust%2Fsrc%2FRuntime%2Fobject.c;h=25fa5869d23340ec49783c94971b2f8a630dccdd;hp=f56686bb957d5542e8eb7031840d947327e0cb0d;hb=bdc086e2ec7fcc674a604906627b52e16fba7eb3;hpb=eb17be02c22191b3fc7bdc335d9434ada68278de diff --git a/Robust/src/Runtime/object.c b/Robust/src/Runtime/object.c index f56686bb..25fa5869 100644 --- a/Robust/src/Runtime/object.c +++ b/Robust/src/Runtime/object.c @@ -53,14 +53,14 @@ void CALL01(___Object______MonitorEnter____, struct ___Object___ * ___this___) { lpair->islastlock=1; while(1) { if (VAR(___this___)->tid==0) { - if (CAS32(&VAR(___this___)->tid, 0, self)==0) { - return; - } + if (CAS32(&VAR(___this___)->tid, 0, self)==0) { + return; + } } { #ifdef PRECISE_GC - if (unlikely(needtocollect)) - checkcollect((struct garbagelist *)___params___); + if (unlikely(needtocollect)) + checkcollect((struct garbagelist *)___params___); #endif } } @@ -103,8 +103,8 @@ void CALL01(___Object______wait____, struct ___Object___ * ___this___) { while(1) { if (VAR(___this___)->tid==0) { if (CAS32(&VAR(___this___)->tid, 0, self)==0) { - BARRIER(); - return; + BARRIER(); + return; } } #ifdef PRECISE_GC