public static int testMonitor2Snippet(){
  Integer x=new Integer(0);
  Double y=new Double(0);
  Object z=new Object();
synchronized (x) {
synchronized (y) {
synchronized (z) {
        notInlineable();
        return x.intValue();
      }
    }
  }
}

public static int testMonitor2Snippet ( ) { Integer x = new Integer ( 0 ) ; Double y = new Double ( 0 ) ; Object z = new Object ( ) ; synchronized ( x ) { synchronized ( y ) { synchronized ( z ) { notInlineable ( ) ; return x . intValue ( ) ; } } } }
this test case differs from the last one in that it requires inlining within a synchronized region .
