@@ -0,0 +1,1319 @@
+package github.banana.vm;%0A%0A/**%0A * %E6%B5%8B%E8%AF%95%E5%86%85%E5%AD%98%E5%88%86%E9%85%8D%E7%AD%96%E7%95%A5%0A * -verbose:gc -Xmx20m -Xms20m -Xmn10m -XX:+PrintGCDetails%0A *%0A * %5BGC (Allocation Failure) %5BPSYoungGen: 6837K-%3E896K(9216K)%5D 6837K-%3E5000K(19456K), 0.0048621 secs%5D %5BTimes: user=0.01 sys=0.00, real=0.00 secs%5D%0A * Heap%0A *  PSYoungGen      total 9216K, used 5316K %5B0x00000007bf600000, 0x00000007c0000000, 0x00000007c0000000)%0A *   eden space 8192K, 53%25 used %5B0x00000007bf600000,0x00000007bfa51078,0x00000007bfe00000)%0A *   from space 1024K, 87%25 used %5B0x00000007bfe00000,0x00000007bfee0000,0x00000007bff00000)%0A *   to   space 1024K, 0%25 used %5B0x00000007bff00000,0x00000007bff00000,0x00000007c0000000)%0A *  ParOldGen       total 10240K, used 4104K %5B0x00000007bec00000, 0x00000007bf600000, 0x00000007bf600000)%0A *   object space 10240K, 40%25 used %5B0x00000007bec00000,0x00000007bf002020,0x00000007bf600000)%0A *  Metaspace       used 3322K, capacity 4496K, committed 4864K, reserved 1056768K%0A *   class space    used 365K, capacity 388K, committed 512K, reserved 1048576K%0A */%0Apublic class AllocateTest %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        int length = 1024 * 1024;%0A        byte%5B%5D bytes1, bytes2, bytes3, bytes4;%0A        bytes1 = new byte%5B2 * length%5D;%0A        bytes2 = new byte%5B2 * length%5D;%0A        bytes3 = new byte%5B2 * length%5D;%0A        bytes4 = new byte%5B2 * length%5D;%0A    %7D%0A%7D%0A

add allocate