< prev index next >

src/os/posix/vm/vmError_posix.cpp

Print this page
rev 12858 : 8184323: compile-time guard some UseSharedSpaces-only coding with the INCLUDE_CDS macro

@@ -125,10 +125,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 siginfo_t* const si = (siginfo_t*)siginfo;
     if (si->si_signo == SIGBUS || si->si_signo == SIGSEGV) {
       const void* const fault_addr = si->si_addr;
       if (fault_addr != NULL) {

@@ -138,7 +139,8 @@
             "Mapped file inaccessible during execution, possible disk/network problem.");
         }
       }
     }
   }
+#endif
 }
 
< prev index next >