< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/CompiledVFrame.java

Print this page

        

*** 125,140 **** return result; } /** Returns List<MonitorInfo> */ ! public List getMonitors() { List monitors = getScope().getMonitors(); if (monitors == null) { ! return new ArrayList(); } ! List result = new ArrayList(monitors.size()); for (int i = 0; i < monitors.size(); i++) { MonitorValue mv = (MonitorValue) monitors.get(i); ScopeValue ov = mv.owner(); StackValue ownerSV = createStackValue(ov); // it is an oop if (ov.isObject()) { // The owner object was scalar replaced --- 125,140 ---- return result; } /** Returns List<MonitorInfo> */ ! public List<MonitorInfo> getMonitors() { List monitors = getScope().getMonitors(); if (monitors == null) { ! return new ArrayList<>(); } ! List<MonitorInfo> result = new ArrayList<>(monitors.size()); for (int i = 0; i < monitors.size(); i++) { MonitorValue mv = (MonitorValue) monitors.get(i); ScopeValue ov = mv.owner(); StackValue ownerSV = createStackValue(ov); // it is an oop if (ov.isObject()) { // The owner object was scalar replaced
< prev index next >