// A basic test for region memory allocation class Test1 { public static void main(String[] args) { SharedRegion r = new SharedRegion(); Simple t1 = new (r) Simple(42); System.out.println("6 x 9 = " + t1.getx()); } } class Simple { private int x; Simple(int tx) { x = tx; } int getx() { return x; } }