summaryrefslogtreecommitdiffstats
path: root/test/080-oom-throw
Commit message (Collapse)AuthorAgeFilesLines
* Fix reflection handling and test flakinessMathieu Chartier2015-04-232-0/+50
| | | | | | | | | | | | Fixed reflection invoke to handle exceptions which occur from FindClass or NewObject by throwing these instead of the expected InvocationTargetException. Added test case to 080 for this reflection invoke. Fixed println throwing OOM in 104-growth-limit. Change-Id: I65766e7c3478e299da06fdc3a521fe3f3e8fdba9
* Revert "Fix OOM throwing if it happens in finalizer reference"Nicolas Geoffray2014-10-031-46/+4
| | | | | | This reverts commit 6d7729d6ae8b2ac3800e92092d61390ce4e3b6d7. Change-Id: I3e863b7372657ee85b0e48029c3a3e2b4ba75a7c
* Fix OOM throwing if it happens in finalizer referenceDmitry Petrochenko2014-10-021-4/+46
| | | | | | | | | | The Class::Alloc should return null if OOM happened during adding finalizer reference, even if finalizable object is allocated succesfully. Change-Id: I66c1cdda50228bf1302839785ce4d4889b676f5b Signed-off-by: Dmitry Petrochenko <dmitry.petrochenko@intel.com> Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
* Fix OOM test case to handle more optimizationsMark Mendell2014-08-181-0/+3
| | | | | | | | | | | | | | | | The 080-oom-throw test case has some code in triggerInstanceOOM to exhaust memory. Unfortunately, a sufficiently intelligent compiler can inline the call to memEater.confuseCompilerOptimization and realize that it is a no-op. In that case, the memEater variable is dead, and if a compiler can improve the GC map, the only live heap data will be the last allocated chunk. Fix this by ensuring that the start of the chain (memEater) is really live. Also ensure that it becomes dead before exiting the method, or the subsequent println will fail allocating memory. Change-Id: I345ebc3e19bd86e176c616ff18bcac4ed8dbb419 Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
* Recycle mem-maps for collector transitions.Mathieu Chartier2014-07-221-2/+2
| | | | | | | | | | | | | | | | | | | | We now create spaces when we need them for collector transitions or homogeneous compaction by recycling mem maps. Change the bump pointer space size to be as large as the heap capacity instead of 1/2 heap capacity like it used to be. For GSS, bump pointer spaces are set to 32MB currently. Changed GSS to have main space == non moving space since we don't need to copy from the main space. Fixes GC stress tests 074, 096. Fixed test 080 oom throw with -Xmx2m for GC stress test, this was broken since it was allocating a 4 MB array before starting the OOM process. Bug: 14059466 Bug: 16406852 Change-Id: I62877cfa24ec944a6f34ffac30334f454a8002fd
* Port AOSP dalvik change 9e11a836e0927e6ea9246b56d99e0482920b81c6 to art.Elliott Hughes2013-04-112-38/+31
| | | | | | | | The flakiness had already been worked around in art, but not backported. The new dalvik fix is cleaner anyway. Bug: https://code.google.com/p/android/issues/detail?id=54114 Change-Id: If21e493f3614a14fc5e645bf7055515b963832bb
* Fix 080-oom-throw println failing.Mathieu Chartier2012-11-191-0/+4
| | | | | | | System.println would occasionally fail since it does small allocations. This is fixed by releasing the memory used by the test before calling println. Change-Id: Ibb40f14f08d5844145b1da65750ecb50a7330dcd
* Adding old unit tests to test suite.jeffhao2011-09-293-0/+84
These tests are copied straight over. They'll still run, but they're using the old system. Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8