mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
test fixed-sized object support in GC.java
This commit is contained in:
parent
e797a8f1ca
commit
4e3e12e9d4
13
test/GC.java
13
test/GC.java
@ -29,9 +29,22 @@ public class GC {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Object[] array = new Object[1024 * 1024];
|
||||
array[0] = new Object();
|
||||
|
||||
small();
|
||||
|
||||
array[1] = new Object();
|
||||
|
||||
medium();
|
||||
|
||||
array[2] = new Object();
|
||||
|
||||
large();
|
||||
|
||||
array[0].toString();
|
||||
array[1].toString();
|
||||
array[2].toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user