OSDN Git Service

(dl)Close native libraries on unload
authorDimitry Ivanov <dimitry@google.com>
Tue, 3 May 2016 22:05:41 +0000 (15:05 -0700)
committerDimitry Ivanov <dimitry@google.com>
Wed, 4 May 2016 22:25:43 +0000 (15:25 -0700)
commit2eb3ba9fcc120b74bdf9f61342347379223973f3
tree29ff9ed54bea36a22b19e7e5c7abd19c9f4c2ff3
parent2f8d3a6d08436be37b8087d7c7bb34b2b8e10e0e
(dl)Close native libraries on unload

Dlclose native libraries when VM unloads a classloader. This
change is made to avoid leakage of adress space and RSS for
mapped but unreachable native libraries.

Bug: http://b/28406866
Change-Id: Iccaa87210908872c2013506d8a310955c1e3d888
(cherry picked from commit 35f01195c4cf6e3c6fbb8b51f5a41b26132b4bdd)
runtime/java_vm_ext.cc