OSDN Git Service

Fix single-stepping resume mode in the interpreter.
authorBen Cheng <bccheng@android.com>
Thu, 27 Oct 2011 21:04:12 +0000 (14:04 -0700)
committerBen Cheng <bccheng@android.com>
Fri, 28 Oct 2011 00:35:28 +0000 (17:35 -0700)
commit0c0624bfad83503547b0226bd2dfac055782582a
tree84de5670bb42baa9f7190b9416c2f8f1d956eaad
parentb4593f197532419746a0df6d93fb33f8b815affc
Fix single-stepping resume mode in the interpreter.

When a resume attempt is cancelled due to other pending request make sure
the old native resume PC is cleared. Otherwise the JIT code cache may be
re-entered with mismatching Dalvik PC.

Also fix a code bloat problem where single-step count is not set properly
after executing a return instruction.

Change-Id: Ia926bc3a87cae1296719a1069838060b181ce54d
vm/interp/Interp.cpp
vm/interp/Jit.cpp