summaryrefslogtreecommitdiff
path: root/compiler/llvm/compiler_llvm.cc
diff options
context:
space:
mode:
author Sebastien Hertz <shertz@google.com> 2014-01-10 17:40:02 +0100
committer Sebastien Hertz <shertz@google.com> 2014-01-14 10:30:37 +0100
commit65637ebbb3c5bdf3f287a76df29a0340c10414c8 (patch)
treeb9f365900059818cb0dedd4acef38c8cd78143d7 /compiler/llvm/compiler_llvm.cc
parent49c670f268218f3b71dbdd99f26606487713f864 (diff)
Fix JDWP IsCollected command handling.
Update the handling of the JDWP IsCollected command for 'null' object id and invalid object id. We follow the RI where 'null' object id triggers an INVALID_OBEJCT error but an invalid object id does not trigger error and return 'true' result. Also fix handling of 'null' object id to avoid confusion with valid object id. We used to rely on ObjectRegistry::Get returning NULL to detect null object id (in which case we return an INVALID_OBJECT error). The issue is this method may also return NULL for a valid object id if the corresponding object has been collected. In this case, we must not return any JDWP error and the result of the command should be 'true' meaning the object identified by the given id has been collected. Bug: 12221035 Change-Id: I013f3759bac7cf5b1e9ee3e8c0d1bb2a11f1b654
Diffstat (limited to 'compiler/llvm/compiler_llvm.cc')
0 files changed, 0 insertions, 0 deletions