summaryrefslogtreecommitdiff
path: root/runtime/debugger.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2016-02-01 10:34:47 -0800
committer Mathieu Chartier <mathieuc@google.com> 2016-02-01 19:58:25 -0800
commit1aa8ec2ccdd7bedb6d30d91c89f1e94ab23c4439 (patch)
tree7b2079631ed5d8350c63c7ed3f6d0393e951ce8c /runtime/debugger.cc
parentc3cf1d2e35a45bd2e2c60fbc9c2a1a6a56dfc529 (diff)
Fix up dex cache strings stored in classes
Previously we left the image pointer instead of fixing up the pointer to the one in the BSS. This only showed up because JIT does the same as boot image, bypassing null check. Fixed a bug where oat files without embedded dex cache arrays would get their dex cache arrays corrupted. Added a non virtual class visitor for performance. Bug: 26846419 Bug: 22858531 Change-Id: I8cd0d61e440f753b4628ddb8c932eb23a0a81027
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r--runtime/debugger.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc
index a0f875d6b8..904490aa8c 100644
--- a/runtime/debugger.cc
+++ b/runtime/debugger.cc
@@ -983,7 +983,7 @@ class ClassListCreator : public ClassVisitor {
public:
explicit ClassListCreator(std::vector<JDWP::RefTypeId>* classes) : classes_(classes) {}
- bool Visit(mirror::Class* c) OVERRIDE SHARED_REQUIRES(Locks::mutator_lock_) {
+ bool operator()(mirror::Class* c) OVERRIDE SHARED_REQUIRES(Locks::mutator_lock_) {
if (!c->IsPrimitive()) {
classes_->push_back(Dbg::GetObjectRegistry()->AddRefType(c));
}