History log of /libnativehelper/JniInvocation.cpp
Revision Date Author Comments
d76cf11b1bb2c3b3bc94a079837901eba61444c3 03-Jun-2016 Alex Light <allight@google.com> Load libart.so with RTLD_NODELETE

During shutdown of libart.so it is possible that threads do not return
out of libart.so code prior to JNI_DestroyJavaVM returning. In order
to prevent segfaults never unmap libart.so.

Bug: 28406866

Change-Id: If52898a5a94f2e41c6634fb4e2cc7059e6436ca4
(cherry picked from commit 6cf8e8d3587a438c7117cce47330ac37ca9d6884)
6cf8e8d3587a438c7117cce47330ac37ca9d6884 03-Jun-2016 Alex Light <allight@google.com> Load libart.so with RTLD_NODELETE

During shutdown of libart.so it is possible that threads do not return
out of libart.so code prior to JNI_DestroyJavaVM returning. In order
to prevent segfaults never unmap libart.so.

Bug: 28406866

Change-Id: If52898a5a94f2e41c6634fb4e2cc7059e6436ca4
6bc946f3d5e94826037325c943787a4c8e952ede 06-Jan-2016 Dimitry Ivanov <dimitry@google.com> Untie libnativehelper from libcutils

Bug: http://b/26421034
Change-Id: I2a54bd87d6e29dfcab81f30863059188c0175b1a
68875719e13cababb7ec737de256f79dfd1eb806 31-Jul-2015 Elliott Hughes <enh@google.com> Use __ANDROID__ instead of HAVE_ANDROID_OS.

Change-Id: Iac5ef595dffe890ad06917afe20085b5628ec267
a75fb2a636ceafac9ddfb580af614e5ef0edf977 17-Sep-2014 Ningsheng Jian <ningsheng.jian@arm.com> NativeHelper: Avoid returning local stack string

Refactor JniInvocation::GetLibrary to not return a stack-allocated
string. Instead, provide a char buffer.

Bug: 16404669

(cherry picked from commit 88b84ec200091bdf5754b435ef55dfcd30078a67)

Change-Id: Id5c1857eb0fdd413b87f839d0c57168d587b5c11
88b84ec200091bdf5754b435ef55dfcd30078a67 17-Sep-2014 Ningsheng Jian <ningsheng.jian@arm.com> NativeHelper: Avoid returning local stack string

Refactor JniInvocation::GetLibrary to not return a stack-allocated
string. Instead, provide a char buffer.

Bug: 16404669
Change-Id: I34f4a40e28bc491ba630a2b1bff5792e34937101
5f4f4aa2ada1360731aede29a11b9a708afd0e68 20-Aug-2014 Andreas Gampe <agampe@google.com> NativeHelper: Do not allow arbitrary library strings in user builds

On device, only allow "libart.so" in non-debuggable (user) builds.

Bug: 16404669

(cherry picked from commit 5019faa3a6bdde33785ece0537e8b865ea7cf938)

Change-Id: Ie163c04ce40c82698dcc98ced651dafef094d8b5
5019faa3a6bdde33785ece0537e8b865ea7cf938 20-Aug-2014 Andreas Gampe <agampe@google.com> NativeHelper: Do not allow arbitrary library strings in user builds

On device, only allow "libart.so" in non-debuggable (user) builds.

Bug: 16404669
Change-Id: Ie163c04ce40c82698dcc98ced651dafef094d8b5
3a4f0c3e2283d5af92fd097990a935d5457bc74d 28-May-2014 Brian Carlstrom <bdc@google.com> Move to dalvik.vm.lib.2 to force default to libart

Bug: 14298175

(cherry picked from commit ddfc32a279eb575380cc3a601cbd989f0177d3be)

Change-Id: I901e35bc43fbc18be3052863429897f133c8d37d
ddfc32a279eb575380cc3a601cbd989f0177d3be 28-May-2014 Brian Carlstrom <bdc@google.com> Move to dalvik.vm.lib.2 to force default to libart

Bug: 14298175
Change-Id: Icc8e62dd7a8ce25e62e9c1a1a2e7d9166043a956
8c4708c0c3a9f79a0794dd5fde1dcb38084b5da8 12-May-2014 Narayan Kamath <narayan@google.com> Change JniInvocation default to libart.so

In particular, this makes dalvikvm host invocations on
host use ART instead of dalvik.

Change-Id: I2220c529434f5c7c07687ca2aaa442f7dbcc9733
f48657172bfa59b93ca4923588de52166376a8b2 04-Apr-2014 Elliott Hughes <enh@google.com> Stop setting LD_LIBRARY_PATH.

This only causes trouble later for anyone who tries to call exec(2).

Bug: 12585421
Change-Id: I33c969cf05ac000489f0cf765555882de68f247b
da1da47c558f4c55d94c7a68bb26e529bc09df72 30-Jan-2014 Brian Carlstrom <bdc@google.com> libnativehelper: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969

(cherry picked from commit ec513922eab7896245a0f69bcbb5457b4706decf)

Change-Id: I888b25a208f51a7dced84f199e3c82c6ae6e4a56
e3538223e56ea7964b5501b05dc57efcaa49ee93 30-Jan-2014 Brian Carlstrom <bdc@google.com> libnativehelper: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: I00789d967c8443f0e0a1e5d35edc2cd16a472a64
ec513922eab7896245a0f69bcbb5457b4706decf 30-Jan-2014 Brian Carlstrom <bdc@google.com> libnativehelper: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: I00789d967c8443f0e0a1e5d35edc2cd16a472a64
bf1e0bac82db4f1ce10b51781c136cb5671f59ed 14-Jan-2014 Elliott Hughes <enh@google.com> Set LD_LIBRARY_PATH in Java apps.

This is the best place to put this because it handles both command-line
and GUI apps.

This change is needed to support 64-bit systems, where there may be
both 32-bit and 64-bit VMs at the same time.

Change-Id: Ifbc0ef18e7d7e5e188c77131ada2ce1e969bc064
feeb36c2bd4adfe285f98f5de92e0f3771b2c115 31-Oct-2013 Brian Carlstrom <bdc@google.com> Fallback to a known good runtime if requested one is not available

Bug: 11463182
Change-Id: I478e7ab9eaee179114b7fa6afe660233e66b0614
df03494e77af20d21f3a659e6619cd64c8302c75 30-Jun-2013 Brian Carlstrom <bdc@google.com> Renaming dalvik.vm.lib to persist.sys.dalvik.vm.lib

Change-Id: I120e2f85a5f946d5884cca722b3bdc61961eb32b
b2acfa245745f58674df2e04af471e89088a6c11 20-Jun-2013 Brian Carlstrom <bdc@google.com> Add JNI Invocation API to libnativehelper

Change-Id: I15870937ad7bfa4757e21f83acbbb6a7826a0b0b