hotspot/src/os/posix/vm/vmError_posix.cpp
changeset 46689 59f0972cf342
parent 46361 b4c026dd6128
--- a/hotspot/src/os/posix/vm/vmError_posix.cpp	Tue Jul 18 15:43:07 2017 +0200
+++ b/hotspot/src/os/posix/vm/vmError_posix.cpp	Tue Jul 18 15:46:04 2017 -0400
@@ -147,6 +147,7 @@
 // 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) {
@@ -160,5 +161,6 @@
       }
     }
   }
+#endif
 }