< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 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 >