OSDN Git Service

ART: Make switch back-edge suspension point consistent
authorAndreas Gampe <agampe@google.com>
Tue, 13 Dec 2016 22:43:58 +0000 (14:43 -0800)
committerAndreas Gampe <agampe@google.com>
Tue, 13 Dec 2016 22:43:58 +0000 (14:43 -0800)
commitf4f7637ef078cbd0812432f5a4051858c80f6309
tree7aa38858ff7af69ae2040bfb386d4a14dd371e96
parent0955e348436130df87ee8f2075b492a66c5232ef
ART: Make switch back-edge suspension point consistent

Both compiled code and mterp attribute a back-edge suspend point
to the target. Make switch consistent by proactively updating
the frame's dex PC in that case.

Add another macro for reuse.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Test: m ART_TEST_INTERPRETER=true ART_TEST_JIT=true ART_TEST_TRACE=true test-art-host
Change-Id: I9969cc4ffbc34cf1d8849938a1cd7e2c9aec462d
runtime/interpreter/interpreter_switch_impl.cc