OSDN Git Service

Move inserted method after end of try block
authorColin Cross <ccross@android.com>
Thu, 3 Aug 2017 22:58:45 +0000 (15:58 -0700)
committerColin Cross <ccross@android.com>
Fri, 4 Aug 2017 03:55:37 +0000 (20:55 -0700)
commitcebc382d5f52eca2f16e3747e28d1f67fccc44b4
tree3cf5a0cd95cda491a186cfbbecdd4f363e622db9
parent49e2a9a612ca15044f5e8b08d0399ee4c8f7a935
Move inserted method after end of try block

Methods inserted at the end of a synchronized {} block also need to
be outside of the implicit try{} block.  Make sure the next
instruction is the virtual end label for the try block, and put
the inserted method after the label.

Bug: 64301866
Test: locked_region_code_injection test
Test: m -j checkbuild
Change-Id: I6626aa45580b4df692e02fc6127a2947a6075e2e
tools/locked_region_code_injection/Android.mk
tools/locked_region_code_injection/src/lockedregioncodeinjection/LockFindingClassVisitor.java
tools/locked_region_code_injection/test/lockedregioncodeinjection/TestMain.java
tools/locked_region_code_injection/test/lockedregioncodeinjection/TestTarget.java