diff options
author | Calin Juravle <calin@google.com> | 2014-10-22 21:02:23 +0100 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-10-27 15:18:28 +0000 |
commit | 2ff973cc395007ddbcf6b498c8de8880d77dd787 (patch) | |
tree | 6b6ec94c9b9978d3662151faa434a4e34b47bb82 /runtime/native_bridge_art_interface.h | |
parent | 506794738de41db046a8094e04aa2a7c5a6e02db (diff) | |
download | art-2ff973cc395007ddbcf6b498c8de8880d77dd787.zip art-2ff973cc395007ddbcf6b498c8de8880d77dd787.tar.gz art-2ff973cc395007ddbcf6b498c8de8880d77dd787.tar.bz2 |
[native bridge] Make sure we always unload the native bridge
libnativebridge may allocate some resources during loading and
intialization and de-allocate them when unloading. This makes sure that
we don't leak anything.
Bug: 18097480
(cherry picked from commit 07d83c7a25022064ac0a8dac4fe2a7a38681fa4b)
Change-Id: I3a5155a6760399ccfaf9130c72679615a3d4f2e7
Diffstat (limited to 'runtime/native_bridge_art_interface.h')
-rw-r--r-- | runtime/native_bridge_art_interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native_bridge_art_interface.h b/runtime/native_bridge_art_interface.h index 42f0ed2..c287f3b 100644 --- a/runtime/native_bridge_art_interface.h +++ b/runtime/native_bridge_art_interface.h @@ -26,7 +26,7 @@ namespace art { // Mirror libnativebridge interface. Done to have the ART callbacks out of line, and not require // the system/core header file in other files. -void LoadNativeBridge(std::string& native_bridge_library_filename); +bool LoadNativeBridge(std::string& native_bridge_library_filename); // This is mostly for testing purposes, as in a full system this is called by Zygote code. void PreInitializeNativeBridge(std::string dir); |