Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/debugger/linux/amd64/LinuxAMD64CFrame.java @ 8672:651919d134f7
7178741: SA: jstack -m produce UnalignedAddressException in output (Linux)
Reviewed-by: poonam, sla
author | kevinw |
---|---|
date | Wed, 27 Feb 2013 22:40:14 +0000 |
parents | b87e5a681416 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
8671:698b615a1cde | 8672:651919d134f7 |
---|---|
58 | 58 |
59 if ( (rbp == null) || rbp.lessThan(rsp) ) { | 59 if ( (rbp == null) || rbp.lessThan(rsp) ) { |
60 return null; | 60 return null; |
61 } | 61 } |
62 | 62 |
63 // Check alignment of rbp | |
64 if ( dbg.getAddressValue(rbp) % ADDRESS_SIZE != 0) { | |
65 return null; | |
66 } | |
67 | |
63 Address nextRBP = rbp.getAddressAt( 0 * ADDRESS_SIZE); | 68 Address nextRBP = rbp.getAddressAt( 0 * ADDRESS_SIZE); |
64 if (nextRBP == null) { | 69 if (nextRBP == null || nextRBP.lessThanOrEqual(rbp)) { |
65 return null; | 70 return null; |
66 } | 71 } |
67 Address nextPC = rbp.getAddressAt( 1 * ADDRESS_SIZE); | 72 Address nextPC = rbp.getAddressAt( 1 * ADDRESS_SIZE); |
68 if (nextPC == null) { | 73 if (nextPC == null) { |
69 return null; | 74 return null; |