diff options
author | Ian Rogers <irogers@google.com> | 2014-09-03 16:16:56 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-09-03 17:15:54 -0700 |
commit | c0542af3e2170143ba40d89136e284997e16bf64 (patch) | |
tree | a61e3b9cd297a4c52a0c0488a502cb77c47f0690 /runtime/jdwp/jdwp.h | |
parent | d3c9358544bbab15093614c5c2b6a9de86e11f7b (diff) | |
download | art-c0542af3e2170143ba40d89136e284997e16bf64.tar.gz art-c0542af3e2170143ba40d89136e284997e16bf64.tar.bz2 art-c0542af3e2170143ba40d89136e284997e16bf64.zip |
Remove abuse of mirror::Object* to reference special values.
Remove kInvalidIndirectRefObject, kClearedJniWeakGlobal and
ObjectRegistry::kInvalidObject. Handle error conditions by passing in or
returning an error value.
GetObjectRefType is simplified to be faster and not return invalid references
that are not expected according to the spec. Adjust check JNI and
jni_internal_test appropriately.
Fix cases in the debugger/JDWP of out arguments being passed by reference.
Bug: 17376993
Change-Id: I3ce8a28c01827e163f4dc288449959464da788b1
Diffstat (limited to 'runtime/jdwp/jdwp.h')
-rw-r--r-- | runtime/jdwp/jdwp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jdwp/jdwp.h b/runtime/jdwp/jdwp.h index 8fd07cc11b..b5b6298b84 100644 --- a/runtime/jdwp/jdwp.h +++ b/runtime/jdwp/jdwp.h @@ -285,7 +285,7 @@ struct JdwpState { private: explicit JdwpState(const JdwpOptions* options); - size_t ProcessRequest(Request& request, ExpandBuf* pReply); + size_t ProcessRequest(Request* request, ExpandBuf* pReply); bool InvokeInProgress(); bool IsConnected(); void SuspendByPolicy(JdwpSuspendPolicy suspend_policy, JDWP::ObjectId thread_self_id) |