summaryrefslogtreecommitdiff
path: root/runtime/java_vm_ext.h
diff options
context:
space:
mode:
author Dimitry Ivanov <dimitry@google.com> 2015-12-15 14:08:18 -0800
committer Dimitry Ivanov <dimitry@google.com> 2015-12-19 23:38:06 -0800
commitd5bbadf44032510b1ce12d9e5f2adad9234cf6b9 (patch)
treed47fc3cbe11567db0e539eaa818b07e569eeed0a /runtime/java_vm_ext.h
parent2f125e3c7ab02cbbbcede533dc53a454a439be13 (diff)
Use shared namespaces for bundled apps
Shared namespaces clone the list of loaded native libraries from the caller namespace. This allows classloaders for bundled apps to share already loaded libraries with default namespace. Bug: http://b/26165097 Bug: http://b/22548808 Change-Id: Ia90b603a0ca97194618b82fb191d6790a4b1f281 (cherry picked from commit 986f650d8b552e8b7dbebef1f50f015e7850edfc)
Diffstat (limited to 'runtime/java_vm_ext.h')
-rw-r--r--runtime/java_vm_ext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/java_vm_ext.h b/runtime/java_vm_ext.h
index 85597695af..8cae1e52d2 100644
--- a/runtime/java_vm_ext.h
+++ b/runtime/java_vm_ext.h
@@ -85,8 +85,9 @@ class JavaVMExt : public JavaVM {
* Returns 'true' on success. On failure, sets 'error_msg' to a
* human-readable description of the error.
*/
- bool LoadNativeLibrary(JNIEnv* env, const std::string& path, jobject javaLoader,
- jstring library_path, jstring permitted_path, std::string* error_msg);
+ bool LoadNativeLibrary(JNIEnv* env, const std::string& path, jobject class_loader,
+ bool is_shared_namespace, jstring library_path, jstring permitted_path,
+ std::string* error_msg);
// Unload native libraries with cleared class loaders.
void UnloadNativeLibraries()