projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9fe1f
)
Add a memory barrier inside pseudo-atomic on PPC.
author
Stas Boukarev
<stassats@gmail.com>
Thu, 15 Aug 2013 18:02:54 +0000
(22:02 +0400)
committer
Stas Boukarev
<stassats@gmail.com>
Thu, 15 Aug 2013 18:02:54 +0000
(22:02 +0400)
Solves problems with allocation and multiple threads.
src/compiler/ppc/macros.lisp
patch
|
blob
|
history
diff --git
a/src/compiler/ppc/macros.lisp
b/src/compiler/ppc/macros.lisp
index
645c566
..
1905a7f
100644
(file)
--- a/
src/compiler/ppc/macros.lisp
+++ b/
src/compiler/ppc/macros.lisp
@@
-354,6
+354,7
@@
(inst twi :ne ,flag-tn 0))
(inst ori alloc-tn alloc-tn pseudo-atomic-flag))
,@forms
+ (inst sync)
(without-scheduling ()
(inst subi alloc-tn alloc-tn pseudo-atomic-flag)
;; Now test to see if the pseudo-atomic interrupted bit is set.