Skip to content

Commit d122cfb

Browse files
Add java address space limits tests
1 parent f8bf577 commit d122cfb

File tree

6 files changed

+39
-0
lines changed

6 files changed

+39
-0
lines changed
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
public class Test {
2+
int x;
3+
Test(int x) { this.x = x; }
4+
5+
public static void main(String[] args) {
6+
int i;
7+
Test[] tests = new Test[30];
8+
for(i = 0; i < 30; ++i) {
9+
tests[i] = new Test(i);
10+
}
11+
assert i == tests[0].x;
12+
}
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CORE
2+
Test.class
3+
--object-bits 4
4+
too many addressed objects
5+
--
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
public class Test {
2+
int x;
3+
Test(int x) { this.x = x; }
4+
5+
public static void main(String[] args) {
6+
int i;
7+
Test[] tests = new Test[30];
8+
for(i = 0; i < 30; ++i) {
9+
tests[i] = new Test(i);
10+
}
11+
assert i == tests[0].x;
12+
}
13+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Test.class
3+
--object-bits 8
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
^\[java::Test.main:\(\[Ljava/lang/String;\)V.assertion.1\] .*: FAILURE$
8+
--

0 commit comments

Comments
 (0)