OSDN Git Service

Revert^4 "Make class redefinition work with native methods on stack."
authorAlex Light <allight@google.com>
Sat, 11 Feb 2017 00:43:10 +0000 (00:43 +0000)
committerAlex Light <allight@google.com>
Tue, 14 Feb 2017 00:52:07 +0000 (16:52 -0800)
commit724f77e2fed038d57a3d08fdcf656d703e3473ea
treea9ce49e4e345defa257df168f354710159a818ff
parent38c20d4a694eea44a1bd3af32a6a99512c139358
Revert^4 "Make class redefinition work with native methods on stack."

We had a problem where there was a brief period of time where the dex
file for an obsolete method could not be obtained. This meant that not
all functions of ArtMethod could safely be called, causing some
problems.

This reverts commit 38c20d4a694eea44a1bd3af32a6a99512c139358.

Reason for revert: Fixed issues with interp-ac and relocate-npatchoat

Test: ART_TEST_RUN_TEST_RELOCATE_NO_PATCHOAT=true \
      ART_TEST_INTERPRETER_ACCESS_CHECKS=true \
      mma -j40 test-art-host

Change-Id: I04991f3e76813831b6446f97636b6fa404397f36
13 files changed:
runtime/art_method.cc
runtime/openjdkjvmti/ti_redefine.cc
runtime/openjdkjvmti/ti_redefine.h
runtime/stack.cc
test/945-obsolete-native/build [new file with mode: 0755]
test/945-obsolete-native/expected.txt [new file with mode: 0644]
test/945-obsolete-native/info.txt [new file with mode: 0644]
test/945-obsolete-native/obsolete_native.cc [new file with mode: 0644]
test/945-obsolete-native/run [new file with mode: 0755]
test/945-obsolete-native/src/Main.java [new file with mode: 0644]
test/945-obsolete-native/src/Transform.java [new file with mode: 0644]
test/Android.bp
test/ti-agent/common_load.cc