< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/InterpretedVFrame.java
Print this page
@@ -106,12 +106,12 @@
return result;
}
/** Returns List<MonitorInfo> */
- public List getMonitors() {
- List result = new ArrayList(5);
+ public List<MonitorInfo> getMonitors() {
+ List<MonitorInfo> result = new ArrayList<>(5);
for (BasicObjectLock current = getFrame().interpreterFrameMonitorEnd();
current.address().lessThan(getFrame().interpreterFrameMonitorBegin().address());
current = getFrame().nextMonitorInInterpreterFrame(current)) {
result.add(new MonitorInfo(current.obj(), current.lock(), false, false));
}
< prev index next >