equal
deleted
inserted
replaced
145 } |
145 } |
146 |
146 |
147 // Write a hint to the stream in case siginfo relates to a segv/bus error |
147 // Write a hint to the stream in case siginfo relates to a segv/bus error |
148 // and the offending address points into CDS archive. |
148 // and the offending address points into CDS archive. |
149 void VMError::check_failing_cds_access(outputStream* st, const void* siginfo) { |
149 void VMError::check_failing_cds_access(outputStream* st, const void* siginfo) { |
|
150 #if INCLUDE_CDS |
150 if (siginfo && UseSharedSpaces) { |
151 if (siginfo && UseSharedSpaces) { |
151 const siginfo_t* const si = (siginfo_t*)siginfo; |
152 const siginfo_t* const si = (siginfo_t*)siginfo; |
152 if (si->si_signo == SIGBUS || si->si_signo == SIGSEGV) { |
153 if (si->si_signo == SIGBUS || si->si_signo == SIGSEGV) { |
153 const void* const fault_addr = si->si_addr; |
154 const void* const fault_addr = si->si_addr; |
154 if (fault_addr != NULL) { |
155 if (fault_addr != NULL) { |
158 "Mapped file inaccessible during execution, possible disk/network problem."); |
159 "Mapped file inaccessible during execution, possible disk/network problem."); |
159 } |
160 } |
160 } |
161 } |
161 } |
162 } |
162 } |
163 } |
|
164 #endif |
163 } |
165 } |
164 |
166 |