*** 2313,10 *** --- 2313,11 --- void GraphBuilder::monitorenter(Value x, int bci) { // save state before locking in case of deoptimization after a NullPointerException ValueStack* state_before = copy_state_for_exception_with_bci(bci); compilation()->set_has_monitors(true); + compilation()->push_monitor(); append_with_bci(new MonitorEnter(x, state()->lock(x), state_before), bci); kill_all(); }