summaryrefslogtreecommitdiff
path: root/runtime/thread.h
diff options
context:
space:
mode:
author Hiroshi Yamauchi <yamauchi@google.com> 2015-11-14 02:15:09 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-11-14 02:15:09 +0000
commitdd4cbcc924c8ba2a578914a4a366996693bdcd74 (patch)
tree2fe66e258de36bcebc913d48e04468b7c639578f /runtime/thread.h
parent0e06a0989f4fc53e0d281a5a2cb5b5a17feaea0c (diff)
parent04302dbb106d590ff72c0dfecda23d85b6565059 (diff)
Merge "Fix class unloading with the CC collector."
Diffstat (limited to 'runtime/thread.h')
-rw-r--r--runtime/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/thread.h b/runtime/thread.h
index 138c143d34..4624f27564 100644
--- a/runtime/thread.h
+++ b/runtime/thread.h
@@ -445,6 +445,8 @@ class Thread {
// Convert a jobject into a Object*
mirror::Object* DecodeJObject(jobject obj) const SHARED_REQUIRES(Locks::mutator_lock_);
+ // Checks if the weak global ref has been cleared by the GC without decoding it.
+ bool IsJWeakCleared(jweak obj) const SHARED_REQUIRES(Locks::mutator_lock_);
mirror::Object* GetMonitorEnterObject() const SHARED_REQUIRES(Locks::mutator_lock_) {
return tlsPtr_.monitor_enter_object;