xxx
This commit is contained in:
15
src/main/resources/testCode.multiargs/Main.java
Normal file
15
src/main/resources/testCode.multiargs/Main.java
Normal file
@@ -0,0 +1,15 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
List<byte[]> holder = new ArrayList<>();
|
||||
int mb = 1024 * 1024;
|
||||
long i = 0;
|
||||
while (true) {
|
||||
holder.add(new byte[10 * mb]);
|
||||
i++;
|
||||
System.out.println("allocated ~" + (i * 10) + "MB");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user