diff options
author | Carl Shapiro <cshapiro@google.com> | 2011-04-20 18:07:44 -0700 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2011-04-20 18:07:44 -0700 |
commit | 122dac5b92c649b5d3182b163d7fce35e8c69d76 (patch) | |
tree | 2fee0eb2183fe138bbe832ff66ec6b2f57302502 /vm/Sync.h | |
parent | 5d6b40f4954c2f2cd664590f2cb73e2adc427dfc (diff) | |
download | android_dalvik-122dac5b92c649b5d3182b163d7fce35e8c69d76.tar.gz android_dalvik-122dac5b92c649b5d3182b163d7fce35e8c69d76.tar.bz2 android_dalvik-122dac5b92c649b5d3182b163d7fce35e8c69d76.zip |
Remove DVM_LOCK_INIT and DVM_LOCK_INITIAL_THIN_VALUE.
The original implementation for thin locks used a magic non-zero value
to encode the initial thin lock state. This magic value was kept
around in DVM_LOCK_INITIAL_THIN_VALUE and stored into the lock word of
newly allocated objects. A later revision to the thin locking code
made the initial thin lock value be 0. That change eliminated the
requirement that lock words be explicitly initialized as the allocator
always returns zero-filled memory.
Change-Id: I34e0b43b4c4db0f45cf7cf524e15d4a6096c1365
Diffstat (limited to 'vm/Sync.h')
-rw-r--r-- | vm/Sync.h | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -73,15 +73,6 @@ struct Thread; typedef struct Monitor Monitor; /* - * Initialize a Lock to the proper starting value. - * This is necessary for thin locking. - */ -#define DVM_LOCK_INITIAL_THIN_VALUE (0) - -#define DVM_LOCK_INIT(lock) \ - do { *(lock) = DVM_LOCK_INITIAL_THIN_VALUE; } while (0) - -/* * Returns true if the lock has been fattened. */ #define IS_LOCK_FAT(lock) (LW_SHAPE(*(lock)) == LW_SHAPE_FAT) |