src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/InterpretedVFrame.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
106 |
106 |
107 return result; |
107 return result; |
108 } |
108 } |
109 |
109 |
110 /** Returns List<MonitorInfo> */ |
110 /** Returns List<MonitorInfo> */ |
111 public List getMonitors() { |
111 public List<MonitorInfo> getMonitors() { |
112 List result = new ArrayList(5); |
112 List<MonitorInfo> result = new ArrayList<>(5); |
113 for (BasicObjectLock current = getFrame().interpreterFrameMonitorEnd(); |
113 for (BasicObjectLock current = getFrame().interpreterFrameMonitorEnd(); |
114 current.address().lessThan(getFrame().interpreterFrameMonitorBegin().address()); |
114 current.address().lessThan(getFrame().interpreterFrameMonitorBegin().address()); |
115 current = getFrame().nextMonitorInInterpreterFrame(current)) { |
115 current = getFrame().nextMonitorInInterpreterFrame(current)) { |
116 result.add(new MonitorInfo(current.obj(), current.lock(), false, false)); |
116 result.add(new MonitorInfo(current.obj(), current.lock(), false, false)); |
117 } |
117 } |