mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
update Test.java to work the GC harder
This commit is contained in:
parent
e794fdb57f
commit
bbae384bd2
@ -1,8 +1,15 @@
|
|||||||
public class Test {
|
public class Test {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
while (true) {
|
for (int i = 0; i < 1024; ++i) {
|
||||||
byte[] array = new byte[4 * 1024];
|
byte[] a = new byte[4 * 1024];
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < 1024; ++i) {
|
||||||
|
Object[] array = new Object[32];
|
||||||
|
for (int j = 0; j < 32; ++j) {
|
||||||
|
array[j] = new byte[32 * 1024];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user