summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2017-01-16 13:52:20 +0000
committer Orion Hodson <oth@google.com> 2017-01-16 13:52:20 +0000
commitfea84ddbccae1c1242d6a1815f6580d758bae8c7 (patch)
tree68ac300b7c09e3aaadc7e103b1bd03f5f1985304
parenta48d74a59af68d45e5c9b9273c2017ae2470d58a (diff)
ART: Fix artInvokePolymorphic.
artInvokePolymorphic called the wrong visit method on RememberForGcArgumentVisitor. It should have called VisitArguments() rather than Visit(). Bug: 30550796,33191393 Test: art/test/run-test 953 Test: m test-art-run-test Change-Id: I46442203e8dc7000efd2cd64b2dcd5ed83163be6
-rw-r--r--runtime/entrypoints/quick/quick_trampoline_entrypoints.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
index 8f7f74680a..eb76fb6b88 100644
--- a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
+++ b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
@@ -2427,7 +2427,7 @@ extern "C" uintptr_t artInvokePolymorphic(
const size_t shorty_length = strlen(shorty);
static const bool kMethodIsStatic = false; // invoke() and invokeExact() are not static.
RememberForGcArgumentVisitor gc_visitor(sp, kMethodIsStatic, shorty, shorty_length, &soa);
- gc_visitor.Visit();
+ gc_visitor.VisitArguments();
// Wrap raw_method_handle in a Handle for safety.
StackHandleScope<5> hs(self);