United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7186778 MachO decoder implementation for MacOSX
JDK-7186778 : MachO decoder implementation for MacOSX

Details
Type:
Enhancement
Submit Date:
2012-07-25
Status:
Closed
Updated Date:
2013-07-18
Project Name:
JDK
Resolved Date:
2012-08-07
Component:
hotspot
OS:
os_x
Sub-Component:
runtime
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
hs24 (b19)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
MachO decoder implementation provides decoded native C stack in hs_err* files and callsites for native memory tracking

                                    

Comments
EVALUATION

The implementation is based on the patch provides by Kevin Walls.
                                     
2012-07-25
EVALUATION

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

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

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

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/3b01d0321dfa
                                     
2012-08-14
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

                                     
2013-07-02



Hardware and Software, Engineered to Work Together