OSDN Git Service

Redesign implementation of RegisterNativeAllocation.
authorRichard Uhler <ruhler@google.com>
Thu, 24 Nov 2016 11:21:41 +0000 (11:21 +0000)
committerRichard Uhler <ruhler@google.com>
Mon, 23 Jan 2017 09:18:36 +0000 (09:18 +0000)
commit6bfc37d875b2556b3f1d95b00a785a09dc94ccb0
tree7bbade00dda5c4fa0d53e2b1fb5e681406ecd48d
parenta8b4390a3b817a455b0abdf575922fea6182170d
Redesign implementation of RegisterNativeAllocation.

Improve the performance and remove the issue with GCing apps to death when
they reach the growth_limit_.

This implements the REDESIGN approach described in detail in the
document at go/understanding-register-native-allocation.

Bug: 29156652
Bug: 32576211
Test: m test-art-host
Test: vogar libcore/luni/src/test/java/libcore/util/NativeAllocationRegistryTest.java
Test: Device boots.
Test: adb bugreport and look for "Registered native bytes allocated"

Change-Id: I09176b2b0e4f0c401fe1947830fa5271060f4e61
runtime/atomic.h
runtime/gc/heap.cc
runtime/gc/heap.h
test/004-NativeAllocations/src/Main.java