OSDN Git Service

Make ObjectRegistry::InternalAdd GC safe
authorSebastien Hertz <shertz@google.com>
Thu, 23 Oct 2014 13:39:33 +0000 (15:39 +0200)
committerSebastien Hertz <shertz@google.com>
Thu, 23 Oct 2014 14:31:58 +0000 (16:31 +0200)
commite2d628b5b0a1b9c29c173f3cbad3ef6cb6c24d2d
treeb1fa6ef18e26a5bad38dde6735b673a54194a6e8
parent8fc5acfd382bdc0d7920e8a13439b64344a8988a
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
Change-Id: I38fb55c3a6be62c4d98d4c94272a9cfeba327598
runtime/jdwp/object_registry.cc
runtime/jdwp/object_registry.h