summaryrefslogtreecommitdiffstats
path: root/test/080-oom-throw/src
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-07-16 13:28:58 -0700
committerMathieu Chartier <mathieuc@google.com>2014-07-22 17:25:32 -0700
commitb363f666883860d40823d5528df3c98c897f74f4 (patch)
treed4b629045d7e1d3e9236a0d8625b4ccbd0dbfc0f /test/080-oom-throw/src
parentddc211980aa2f6149905d8d26f67201ac8e400b3 (diff)
downloadart-b363f666883860d40823d5528df3c98c897f74f4.zip
art-b363f666883860d40823d5528df3c98c897f74f4.tar.gz
art-b363f666883860d40823d5528df3c98c897f74f4.tar.bz2
Recycle mem-maps for collector transitions.
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
Diffstat (limited to 'test/080-oom-throw/src')
-rw-r--r--test/080-oom-throw/src/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/080-oom-throw/src/Main.java b/test/080-oom-throw/src/Main.java
index 3ffe2f3..035690f 100644
--- a/test/080-oom-throw/src/Main.java
+++ b/test/080-oom-throw/src/Main.java
@@ -21,7 +21,7 @@ public class Main {
static void blowup(char[][] holder) {
try {
for (int i = 0; i < holder.length; ++i) {
- holder[i] = new char[128 * 1024];
+ holder[i] = new char[1024 * 1024];
}
} catch (OutOfMemoryError oome) {
ArrayMemEater.sawOome = true;
@@ -49,7 +49,7 @@ public class Main {
}
static boolean triggerArrayOOM() {
- ArrayMemEater.blowup(new char[1 * 1024 * 1024][]);
+ ArrayMemEater.blowup(new char[128 * 1024][]);
return ArrayMemEater.sawOome;
}