commit | ea668645e5fe84f1b097e490044f47fca5ea6bd9 | [log] [tgz] |
---|---|---|
author | Sebastien Hertz <shertz@google.com> | Thu Oct 23 15:39:33 2014 +0200 |
committer | Sebastien Hertz <shertz@google.com> | Tue Oct 28 17:58:32 2014 +0100 |
tree | cd0a0883479beae22c1bf1abdcb932a73543e760 | |
parent | 74dc0bee276f836f63be7558dee868ef5f6acc40 [diff] |
Make ObjectRegistry::InternalAdd GC safe Because a call to IdentityHashCode may cause GC, the object pointer may become invalid (if the object has been moved) on next uses. We now access the object through a Handle to be GC safe. Also remove unused methods. Bug: 18098424 (cherry picked from commit e2d628b5b0a1b9c29c173f3cbad3ef6cb6c24d2d) Change-Id: I4fdff54053aa947765a39adf67345b08816387e5