projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch to spaces only..
[IRC.git]
/
Robust
/
src
/
Runtime
/
object.c
diff --git
a/Robust/src/Runtime/object.c
b/Robust/src/Runtime/object.c
index f56686bb957d5542e8eb7031840d947327e0cb0d..25fa5869d23340ec49783c94971b2f8a630dccdd 100644
(file)
--- 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) {
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
}
{
#ifdef PRECISE_GC
- if (unlikely(needtocollect))
- checkcollect((struct garbagelist *)___params___);
+
if (unlikely(needtocollect))
+
checkcollect((struct garbagelist *)___params___);
#endif
}
}
#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) {
while(1) {
if (VAR(___this___)->tid==0) {
if (CAS32(&VAR(___this___)->tid, 0, self)==0) {
- BARRIER();
- return;
+
BARRIER();
+
return;
}
}
#ifdef PRECISE_GC
}
}
#ifdef PRECISE_GC