This commit is contained in:
2026-02-12 18:09:54 +08:00
commit 50a71d88ba
18 changed files with 869 additions and 0 deletions

View 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");
}
}
}