diff options
author | Carl Shapiro <cshapiro@google.com> | 2010-03-08 14:38:42 -0800 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2010-03-08 14:55:43 -0800 |
commit | a284deeefa13bc2fcaf28f09abc95a7622eee129 (patch) | |
tree | e06d83cb4d07c7c07aa3ec753f84b33b006fc824 /include/ScopedJavaUnicodeString.h | |
parent | 51060988c66313c5889726dfaa30b6dfdddc4963 (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