@@ -0,0 +1,672 @@
+package no.javazone;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.concurrent.Executors;%0A%0Apublic class MemoryFail %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A%0A        Test test = new Test();%0A        new TaskRunner(10_000, ()-%3E test.updateMe(%22rubbish%22)).runOnExecutor(Executors.newCachedThreadPool());%0A        System.out.println(test.number);%0A        System.out.println(test.list.size());%0A    %7D%0A%0A    private static class Test %7B%0A        List%3CString%3E list = new ArrayList%3C%3E();%0A        long number = 0;%0A%0A        public long updateMe(String whatever) %7B%0A            list.add(whatever);%0A            return number++;%0A        %7D%0A    %7D%0A%0A%7D%0A

add example of shared memory fail