agent/src/share/classes/sun/jvm/hotspot/tools/PStack.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/agent/src/share/classes/sun/jvm/hotspot/tools/PStack.java	Wed Mar 13 23:31:50 2013
--- new/agent/src/share/classes/sun/jvm/hotspot/tools/PStack.java	Wed Mar 13 23:31:50 2013

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2003, 2013, 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.
*** 30,39 **** --- 30,40 ---- import sun.jvm.hotspot.interpreter.*; import sun.jvm.hotspot.debugger.*; import sun.jvm.hotspot.debugger.cdbg.*; import sun.jvm.hotspot.oops.*; import sun.jvm.hotspot.runtime.*; + import sun.jvm.hotspot.utilities.PlatformInfo; public class PStack extends Tool { // in non-verbose mode, Method*s are not printed in java frames public PStack(boolean v, boolean concurrentLocks) { this.verbose = v;
*** 52,61 **** --- 53,67 ---- Debugger dbg = getAgent().getDebugger(); run(out, dbg); } public void run(PrintStream out, Debugger dbg) { + if (PlatformInfo.getOS().equals("darwin")) { + out.println("Not available on Darwin"); + return; + } + CDebugger cdbg = dbg.getCDebugger(); if (cdbg != null) { ConcurrentLocksPrinter concLocksPrinter = null; // compute and cache java Vframes. initJFrameCache();

agent/src/share/classes/sun/jvm/hotspot/tools/PStack.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File