JDK-7186778 : MachO decoder implementation for MacOSX
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs24
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-07-25
  • Updated: 2022-11-28
  • Resolved: 2012-08-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
MachO decoder implementation provides decoded native C stack in hs_err* files and callsites for native memory tracking


Verified: JDK: jdk7u40 build 31 OS/ENV: Mac OS-X 64bit CMD: ~/jdk/jdk7u40_b31/jdk1.7.0_40/fastdebug/bin/java -XX:ErrorHandlerTest=4 -version RUNS: 1 RESULT: PASS As expected, hs_err*.log contains the decoded stack info: --------------- T H R E A D --------------- Current thread (0x00007ff5f4000800): JavaThread "main" [_thread_in_native, id=8195, stack(0x000000010fce6000,0x000000010fde6000)] Stack: [0x000000010fce6000,0x000000010fde6000], sp=0x000000010fde5670, free space=1021k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.dylib+0x79dd2e] VMError::report_and_die()+0x622 V [libjvm.dylib+0x2f7154] report_vm_error(char const*, int, char const*, char const*)+0x63 V [libjvm.dylib+0x2f8147] test_error_handler(unsigned long)+0x5e V [libjvm.dylib+0x49ea5b] JNI_CreateJavaVM+0x1c3 C [java+0x2905] JavaMain+0x134 C [libsystem_c.dylib+0x4e8bf] _pthread_start+0x14f C [libsystem_c.dylib+0x51b75] thread_start+0xd

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/3b01d0321dfa

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/3b01d0321dfa

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/3b01d0321dfa

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/3b01d0321dfa

EVALUATION The implementation is based on the patch provides by Kevin Walls.