changeset 53190:c1eed9867bf0

8215342: [Zero] Build fails after JDK-8200613 Reviewed-by: shade, jgeorge Contributed-by: Christophe Phillips <chphilli@redhat.com>
author sgehwolf
date Thu, 13 Dec 2018 10:25:50 +0100
parents 1c85328b7631
children c8b2a408628b
files src/hotspot/os/linux/os_linux.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os/linux/os_linux.cpp	Wed Dec 12 12:36:53 2018 -0500
+++ b/src/hotspot/os/linux/os_linux.cpp	Thu Dec 13 10:25:50 2018 +0100
@@ -1354,9 +1354,11 @@
 void os::abort(bool dump_core, void* siginfo, const void* context) {
   os::shutdown();
   if (dump_core) {
+#if INCLUDE_CDS
     if (UseSharedSpaces && DumpPrivateMappingsInCore) {
       ClassLoader::close_jrt_image();
     }
+#endif
 #ifndef PRODUCT
     fdStream out(defaultStream::output_fd());
     out.print_raw("Current thread is ");
@@ -5075,9 +5077,11 @@
     set_coredump_filter(DAX_SHARED_BIT);
   }
 
+#if INCLUDE_CDS
   if (UseSharedSpaces && DumpPrivateMappingsInCore) {
     set_coredump_filter(FILE_BACKED_PVT_BIT);
   }
+#endif
 
   return JNI_OK;
 }