projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c91ccc
)
bug fix for optimizations`
author
bdemsky
<bdemsky>
Tue, 12 Apr 2011 23:51:41 +0000
(23:51 +0000)
committer
bdemsky
<bdemsky>
Tue, 12 Apr 2011 23:51:41 +0000
(23:51 +0000)
Robust/src/Analysis/Loops/GlobalFieldType.java
patch
|
blob
|
history
diff --git
a/Robust/src/Analysis/Loops/GlobalFieldType.java
b/Robust/src/Analysis/Loops/GlobalFieldType.java
index 3aa5ef8973bb6ef32de64ee81621eaa0ad5c05ce..997bac0999fa1e7a7e5f04c16ca7faebc7078326 100644
(file)
--- a/
Robust/src/Analysis/Loops/GlobalFieldType.java
+++ b/
Robust/src/Analysis/Loops/GlobalFieldType.java
@@
-223,6
+223,12
@@
public class GlobalFieldType {
containsBarrier.add(md);
containsBarrier.add(mdcall);
}
+ //treat lock acquire the same as a barrier
+ if ((mdcall.getSymbol().equals("MonitorEnter")||mdcall.getSymbol().equals("MonitorExit"))&&
+ mdcall.getClassDesc().getSymbol().equals("Object")) {
+ containsBarrier.add(md);
+ containsBarrier.add(mdcall);
+ }
}
}
}