Re-land "Add 2040-huge-native-alloc test"
This reverts commit c256028e1fb92b47c741db67b6bc8ca6995e6c1b.
Reason for revert: The underlying problem is fixed, and we need
better testing.
PS2 and later also contains the following change:
More aggressively notify the collector of native allocation, to account
for the fact that on host, only one notification in 384 is pass through,
since mallinfo is SLOW.
This version once again assumes that we sleep if necessary to allow the
triggered collection to both get started and complete.
Test: Treehugger
Bug: 189150802
Bug: 189955496
Change-Id: I2ec4ca9a37fa9dbd9c7d351208d3d5ca2d4ee5d4
diff --git a/test/Android.bp b/test/Android.bp
index e710509..e393f06 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -730,6 +730,7 @@
"2033-shutdown-mechanics/native_shutdown.cc",
"2036-jni-filechannel/jni_filechannel.cc",
"2037-thread-name-inherit/thread_name_inherit.cc",
+ "2040-huge-native-alloc/huge_native_buf.cc",
"common/runtime_state.cc",
"common/stack_inspect.cc",
],