diff options
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 687ab09265..9aa29b8a44 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -2424,7 +2424,7 @@ void ClassLinker::VisitClassRoots(RootVisitor* visitor, VisitRootFlags flags) { for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { ObjPtr<mirror::Object> old_ref = root.Read<kWithoutReadBarrier>(); if (old_ref != nullptr) { - DCHECK(old_ref->IsClass()); + DCHECK(old_ref->IsClass() || old_ref->IsString()); root.VisitRoot(visitor, RootInfo(kRootStickyClass)); ObjPtr<mirror::Object> new_ref = root.Read<kWithoutReadBarrier>(); // Concurrent moving GC marked new roots through the to-space invariant. |