summaryrefslogtreecommitdiff
path: root/runtime/gc/reference_processor.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2024-11-28 16:28:04 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2025-01-16 11:36:58 +0000
commit990cf07523a5c6ae437a0bd0cc80fb63320def5e (patch)
tree7d7160e014b14368c6cd8dcfcbfe9e2996f19e51 /runtime/gc/reference_processor.cc
parentae13bd8a14183069642a5eed4793cf34f5a2eadc (diff)
Merge sFields and iFields.
Test: test.py Change-Id: Ib97fca637a8866a41a4389b150c6000d9fb6d99b
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r--runtime/gc/reference_processor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc
index cb777c895c..c799f5443b 100644
--- a/runtime/gc/reference_processor.cc
+++ b/runtime/gc/reference_processor.cc
@@ -54,8 +54,8 @@ ReferenceProcessor::ReferenceProcessor()
static inline MemberOffset GetSlowPathFlagOffset(ObjPtr<mirror::Class> reference_class)
REQUIRES_SHARED(Locks::mutator_lock_) {
DCHECK(reference_class == GetClassRoot<mirror::Reference>());
- // Second static field
- ArtField* field = reference_class->GetStaticField(1);
+ ArtField* field = reference_class->GetField(reference_class->NumFields() - 1);
+ DCHECK(field->IsStatic());
DCHECK_STREQ(field->GetName(), "slowPathEnabled");
return field->GetOffset();
}