diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-10-25 10:05:23 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2013-10-29 12:14:36 -0700 |
commit | ad2541a59c00c2c69e8973088891a2b5257c9780 (patch) | |
tree | 523898cf039c5185352978e71a54fa3a2657a04c /runtime/locks.h | |
parent | 9780099e445884d8bc9444c8c1261b02d80a26c7 (diff) | |
download | android_art-ad2541a59c00c2c69e8973088891a2b5257c9780.tar.gz android_art-ad2541a59c00c2c69e8973088891a2b5257c9780.tar.bz2 android_art-ad2541a59c00c2c69e8973088891a2b5257c9780.zip |
Fix object identity hash.
The object identity hash is now stored in the monitor word after
being computed. Hashes are computed by a pseudo random number
generator.
When we write the image, we eagerly compute object hashes to
prevent pages getting dirtied.
Bug: 8981901
Change-Id: Ic8edacbacb0afc7055fd740a52444929f88ed564
Diffstat (limited to 'runtime/locks.h')
-rw-r--r-- | runtime/locks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/locks.h b/runtime/locks.h index f63e2b1720..226221822b 100644 --- a/runtime/locks.h +++ b/runtime/locks.h @@ -53,8 +53,8 @@ enum LockLevel { kJdwpAttachLock, kJdwpStartLock, kRuntimeShutdownLock, - kHeapBitmapLock, kMonitorLock, + kHeapBitmapLock, kMutatorLock, kZygoteCreationLock, |