import is.jcdav.darkseer.DarkSeer;

public class Demo {
  public static String test(String s1, String s2) {
    return s1 + s2;
  }

  public static void main(String[] args) {
    test("hello", "world");
    DarkSeer.start();
    test("hello", "world");
    DarkSeer.end();
    for(int i = 0; i < 500000; i++) {
      test("hello", "world");
    }
    DarkSeer.start();
    test("hello", "world");
    DarkSeer.end();
  }
}

@@ -29,16 +29,246 @@
 kSeer;%0A%0A
+/* A Demo that shows the change in allocations as a return of string conat%0A * optimization in c2. Note that this is no longer interesting as of java 9+,%0A * since indy concat in means that the conccat is optimal immediately :)%0A */%0A
 public c

Add comment in Demo about limitations