summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2010-02-16 23:27:18 +0000
committerBjorn Bringert <bringert@android.com>2010-02-16 23:31:46 +0000
commit1017a134c19b3d296c7c05cf640db4b08816d090 (patch)
tree1e5e9d1b9d248db7f78826ba5051e823bfee9005 /libs/rs/rsg_ScriptJavaClass.cpp
parentcf06dd0a8a4321ea640e7d1ebe5dffcd69324a04 (diff)
Clean up after failed MemoryFileTest.testPurge()
MemoryFileTest.testPurge() can fail if the process runs out of file descriptors before the kernel starts purging ashmem areas. Before, there was no finally block to close the open ashmem file descriptions, which caused random other tests to fail. I also changed the size of the memory areas to 10MB, which should cause it to run out of memory before it runs out of file descriptors. It now fails with this instead: java.io.IOException at android.os.MemoryFile.native_pin(Native Method) at android.os.MemoryFile.allowPurging(MemoryFile.java:189) at android.os.MemoryFileTest.testPurge(MemoryFileTest.java:53) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:430) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447) I'm not sure why, but it could be that the kernel is purging the just allocated area instead of an old one. That seems like bug. See http://b/issue?id=2203775 Change-Id: Ia7930a714378474dd4c2c6709da40c08e715ab6f
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions