agent/src/share/classes/sun/jvm/hotspot/utilities/PlatformInfo.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot-8003348 Cdiff agent/src/share/classes/sun/jvm/hotspot/utilities/PlatformInfo.java

agent/src/share/classes/sun/jvm/hotspot/utilities/PlatformInfo.java

Print this page
8003348: SA can not read core file on OS X

*** 1,7 **** /* ! * Copyright (c) 2000, 2012, 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, 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.
*** 41,52 **** return "bsd"; } else if (os.equals("NetBSD")) { return "bsd"; } else if (os.equals("OpenBSD")) { return "bsd"; ! } else if (os.equals("Darwin") || os.contains("OS X")) { ! return "bsd"; } else if (os.startsWith("Windows")) { return "win32"; } else { throw new UnsupportedPlatformException("Operating system " + os + " not yet supported"); } --- 41,52 ---- return "bsd"; } else if (os.equals("NetBSD")) { return "bsd"; } else if (os.equals("OpenBSD")) { return "bsd"; ! } else if (os.contains("Darwin") || os.contains("OS X")) { ! return "darwin"; } else if (os.startsWith("Windows")) { return "win32"; } else { throw new UnsupportedPlatformException("Operating system " + os + " not yet supported"); }
agent/src/share/classes/sun/jvm/hotspot/utilities/PlatformInfo.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File