comparison agent/src/share/classes/sun/jvm/hotspot/runtime/JavaThread.java @ 8750:39432a1cefdd

8003348: SA can not read core file on OS Summary: Macosx uses Mach-O file format for binary files, not ELF format. Currently SA works on core files on other platforms, t his change enables SA work on core file generated on Darwin. Reviewed-by: sla, sspitsyn Contributed-by: yumin.qi@oracle.com
author minqi
date Thu, 14 Mar 2013 00:33:08 -0700
parents c18cbe5936b8
children
comparison
equal deleted inserted replaced
8719:c8b31b461e1a 8750:39432a1cefdd
1 /* 1 /*
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2000, 2013, 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.
318 318
319 public Address getStackBase() { 319 public Address getStackBase() {
320 return stackBaseField.getValue(addr); 320 return stackBaseField.getValue(addr);
321 } 321 }
322 322
323 public long getStackBaseValue() {
324 return VM.getVM().getAddressValue(getStackBase());
325 }
326
323 public long getStackSize() { 327 public long getStackSize() {
324 return stackSizeField.getValue(addr); 328 return stackSizeField.getValue(addr);
325 } 329 }
326 330
327 /** Gets the Java-side thread object for this JavaThread */ 331 /** Gets the Java-side thread object for this JavaThread */