projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.4.39: get rid of hardcoded mutex and spinlock slot indexes
[sbcl.git]
/
src
/
compiler
/
x86-64
/
cell.lisp
diff --git
a/src/compiler/x86-64/cell.lisp
b/src/compiler/x86-64/cell.lisp
index
d9e8368
..
929e74f
100644
(file)
--- a/
src/compiler/x86-64/cell.lisp
+++ b/
src/compiler/x86-64/cell.lisp
@@
-289,7
+289,7
@@
(pseudo-atomic
(emit-label get-tls-index-lock)
(inst mov temp 1)
(pseudo-atomic
(emit-label get-tls-index-lock)
(inst mov temp 1)
- (inst xor rax rax)
+ (zeroize rax)
(inst lock)
(inst cmpxchg (make-ea-for-symbol-value *tls-index-lock*) temp)
(inst jmp :ne get-tls-index-lock)
(inst lock)
(inst cmpxchg (make-ea-for-symbol-value *tls-index-lock*) temp)
(inst jmp :ne get-tls-index-lock)