OSDN Git Service

Add explicit monitor inflation run test.
authorHans Boehm <hboehm@google.com>
Thu, 5 May 2016 01:35:57 +0000 (18:35 -0700)
committerHans Boehm <hboehm@google.com>
Mon, 23 Jan 2017 20:40:03 +0000 (12:40 -0800)
commit6fe97e0bcc82ae9b9a0ada5cac7eaebf74d130c3
tree17ea0b64cf7e3f95252af1e95e4788d339f2c4e2
parent152b9567d0c2382464c844c91c2108608a1bc06f
Add explicit monitor inflation run test.

This tests some of the same code as the monitor_pool_test
gtest. But it tests a larger pool size with the code needed to
invoke it from the Java level.  Larger pool sizes have gotten
more interesting with the new monitor pool layout.

Add a function to return the size of the current MonitorList.
Currently this is only used by this test, but it is likely to
have debugging or performance analysis uses as well.

Test: Passed on host and on angler.

Change-Id: I4f3f150044a0d8c800eb60635e074119598cfdd1
runtime/monitor.cc
runtime/monitor.h
test/596-monitor-inflation/expected.txt [new file with mode: 0644]
test/596-monitor-inflation/info.txt [new file with mode: 0644]
test/596-monitor-inflation/monitor_inflation.cc [new file with mode: 0644]
test/596-monitor-inflation/src/Main.java [new file with mode: 0644]
test/Android.bp