summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/throwable.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mirror/throwable.cc')
-rw-r--r--runtime/mirror/throwable.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/mirror/throwable.cc b/runtime/mirror/throwable.cc
index 93ed4d4daf..61d85e2fe2 100644
--- a/runtime/mirror/throwable.cc
+++ b/runtime/mirror/throwable.cc
@@ -138,9 +138,7 @@ void Throwable::ResetClass() {
}
void Throwable::VisitRoots(RootCallback* callback, void* arg) {
- if (!java_lang_Throwable_.IsNull()) {
- java_lang_Throwable_.VisitRoot(callback, arg, 0, kRootStickyClass);
- }
+ java_lang_Throwable_.VisitRootIfNonNull(callback, arg, RootInfo(kRootStickyClass));
}
} // namespace mirror