package DebugAndJDK8;

/**
 * Created by chenyang on 2017/6/29.
 */
public class UnsafeArrayLIst {

}

@@ -16,16 +16,45 @@
 dJDK8;%0A%0A
+import java.util.ArrayList;%0A%0A
 /**%0A * C
@@ -121,11 +121,874 @@
 yLIst %7B%0A
+   static ArrayList al=new ArrayList();%0A   static class AddTask implements Runnable%7B%0A       public void run() %7B%0A           try%7B%0A               Thread.sleep(100);%0A           %7Dcatch (InterruptedException e)%7B%0A%0A           %7D%0A           for(int i=0;i%3C1000000;i++)%7B%0A               al.add(new Object());%0A           %7D%0A       %7D%0A   %7D%0A%0A    public static void main(String%5B%5D args) throws InterruptedException%7B%0A        Thread t1=new Thread(new AddTask(),%22t1%22);%0A        Thread t2=new Thread(new AddTask(),%22t2%22);%0A        t1.start();%0A        t2.start();%0A        Thread t3=new Thread(new Runnable() %7B%0A            public void run() %7B%0A                while (true)%7B%0A                    try%7B%0A                        Thread.sleep(1000);%0A                    %7Dcatch (InterruptedException e)%7B%0A%0A                    %7D%0A                %7D%0A            %7D%0A        %7D,%22t3%22);%0A        t3.start();%0A    %7D
 %0A%7D%0A

update code