OSDN Git Service

ART: Add missing EXPORT_PCs to x86/_64 mterp
authorbuzbee <buzbee@google.com>
Thu, 28 Apr 2016 23:08:44 +0000 (16:08 -0700)
committerbuzbee <buzbee@google.com>
Thu, 28 Apr 2016 23:08:44 +0000 (16:08 -0700)
commit963758dbfbbbc95bbfa82d5e02258d9fd481a459
treeefc443f2179aa1e998e3d28eadae4c12099128ad
parent85e47976a483844177eb486d6e501fa070fbe6e2
ART: Add missing EXPORT_PCs to x86/_64 mterp

Any time there is a possiblity that execution flow will leave
the mterp environment and transition either to an alternate
interpreter or compiled code, we need to export the cached copy of
the current Dalvik PC.  One path out related to on-stack-replacement
was missed in both x86 and x86_64 versions of mterp (other targets
are OK).

Note that there is an outstanding feature request to add support
to catch missing EXPORT_PCs (Bug: 26572899), though as envisioned
it would not have caught this one.

Bug: 28249238
Change-Id: I3936509665636c0b77580dda12520a82ee814fa5
runtime/interpreter/mterp/out/mterp_x86.S
runtime/interpreter/mterp/out/mterp_x86_64.S
runtime/interpreter/mterp/x86/footer.S
runtime/interpreter/mterp/x86_64/footer.S