summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2010-03-08 14:38:42 -0800
committerCarl Shapiro <cshapiro@google.com>2010-03-08 14:55:43 -0800
commita284deeefa13bc2fcaf28f09abc95a7622eee129 (patch)
treee06d83cb4d07c7c07aa3ec753f84b33b006fc824 /include/ScopedJavaUnicodeString.h
parent51060988c66313c5889726dfaa30b6dfdddc4963 (diff)
Hoist shape discrimination above thin lock owner test in the lock
procedure. It is unsafe to reckon a thin lock owner without having first determined that the bit pattern of the lock word corresponds to that of a thin lock. Without proper ordering, a monitor lock can and will be created which, excluding the shape bit, corresponds to a lock owned by the calling thread. In addition, move compiler barriers so they immediately preceed base address publication. Also, kill cargo-cult volatiles that confounded my bug hunt.
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions