OSDN Git Service

Make all class redefinition operations after suspend_all infallible
authorAlex Light <allight@google.com>
Tue, 10 Jan 2017 21:33:56 +0000 (13:33 -0800)
committerAlex Light <allight@google.com>
Tue, 10 Jan 2017 23:30:47 +0000 (15:30 -0800)
commit007ada2bba66ceee38c99ae2a76da5095d94a7f4
treee0e97ca5187a101af8aaad4eb64c0b8d5f49a0ef
parent2e17788df086284845108c6b39954a5c74e93a69
Make all class redefinition operations after suspend_all infallible

We can guarantee that the mutations to the class, classloader, method
& stack data-structures which occur after the suspend_all can never
fail. This will simplify implementing the required semantics of class
redefinition with respect to atomically updating multiple classes at
once.

Test: mma -j40 test-art-host
Change-Id: Iab95c66afbdcfe161a9486f5fb7193c53642c060
runtime/openjdkjvmti/ti_redefine.cc
runtime/openjdkjvmti/ti_redefine.h