diff options
author | 2022-11-29 08:47:02 +0000 | |
---|---|---|
committer | 2022-12-02 08:38:22 +0000 | |
commit | addc2d15385721950ce977bbddc9221edc4c8c49 (patch) | |
tree | b49dd895b1ed0d49087d5237d99c364ac65cf347 /runtime/gc/reference_processor.cc | |
parent | 7dde6edda2bc0091f54a2d07ff80d124090fa964 (diff) |
Change remaining well known methods to `ArtMethod*`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I9cfef2a2c302f70826ac762202421388213e60e6
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r-- | runtime/gc/reference_processor.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc index 772174f885..f24c94279c 100644 --- a/runtime/gc/reference_processor.cc +++ b/runtime/gc/reference_processor.cc @@ -363,9 +363,8 @@ class ClearedReferenceTask : public HeapTask { } void Run(Thread* thread) override { ScopedObjectAccess soa(thread); - jvalue args[1]; - args[0].l = cleared_references_; - InvokeWithJValues(soa, nullptr, WellKnownClasses::java_lang_ref_ReferenceQueue_add, args); + WellKnownClasses::java_lang_ref_ReferenceQueue_add->InvokeStatic<'V', 'L'>( + thread, soa.Decode<mirror::Object>(cleared_references_)); soa.Env()->DeleteGlobalRef(cleared_references_); } |