OSDN Git Service

Revert "Revert some flaky unloading"
authorAlex Light <allight@google.com>
Mon, 6 Jun 2016 17:45:28 +0000 (10:45 -0700)
committerAlex Light <allight@google.com>
Mon, 6 Jun 2016 17:48:05 +0000 (10:48 -0700)
commit9e726e874580f1e8b2e0bfa63d2e9a3ac911cd1c
tree96a8bfe6aaafb8af2c63c1741ec2c541d518558d
parent681c58c6eab2bc8dab561cb6ac5bcabe89676730
Revert "Revert some flaky unloading"

This reverts commit 73ad16e0193866d36dbd4088ac77fa5d4ceec334.

With this code it is possible that during testing we will race the
final shutdown of some threads (i.e. returning to thread_start after
signaling thread has been finished) with the unloading of libart.so by
libnativehelper. This could cause crashes. By ensuring that libart.so
code is not unloaded in libnativehelper we fix the issue with this
patch.

Bug: 28406866

Change-Id: Ic67118c2a4e743941402b17b6bbfe4cce441f68f
runtime/common_runtime_test.cc
runtime/java_vm_ext.cc