< prev index next >
src/os/windows/vm/vmError_windows.cpp
Print this page
rev 12858 : 8184323: compile-time guard some UseSharedSpaces-only coding with the INCLUDE_CDS macro
@@ -49,10 +49,11 @@
}
// Write a hint to the stream in case siginfo relates to a segv/bus error
// and the offending address points into CDS archive.
void VMError::check_failing_cds_access(outputStream* st, const void* siginfo) {
+#if INCLUDE_CDS
if (siginfo && UseSharedSpaces) {
const EXCEPTION_RECORD* const er = (const EXCEPTION_RECORD*)siginfo;
if (er->ExceptionCode == EXCEPTION_IN_PAGE_ERROR &&
er->NumberParameters >= 2) {
const void* const fault_addr = (const void*) er->ExceptionInformation[1];
@@ -63,6 +64,7 @@
"Mapped file inaccessible during execution, possible disk/network problem.");
}
}
}
}
+#endif
}
< prev index next >