JDK-8215351 : Zero and Minimal VMs fail to build after JDK-8200613
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-12-13
  • Updated: 2018-12-13
  • Resolved: 2018-12-13
Related Reports
Duplicate :  
Relates :  
Description
Zero:

/home/buildbot/worker/jdkX-linux/build/build/linux-x86_64-zero-fastdebug/hotspot/variant-zero/libjvm/objs/os_linux.o: In function `os::abort(bool, void*, void const*)':
/home/buildbot/worker/jdkX-linux/build/src/hotspot/os/linux/os_linux.cpp:1358: undefined reference to `ClassLoader::close_jrt_image()'
Comments
Duplicate of JDK-8215342
13-12-2018

Candidate fix: diff -r 9a73a4e4011f src/hotspot/os/linux/os_linux.cpp --- a/src/hotspot/os/linux/os_linux.cpp Thu Dec 13 15:11:25 2018 +0530 +++ b/src/hotspot/os/linux/os_linux.cpp Thu Dec 13 13:08:15 2018 +0100 @@ -1352,13 +1352,15 @@ // called from signal handler. Before adding something to os::abort(), make // sure it is async-safe and can handle partially initialized VM. 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 "); char buf[16]; jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id()); @@ -5073,13 +5075,15 @@ if (!FLAG_IS_DEFAULT(AllocateHeapAt)) { set_coredump_filter(DAX_SHARED_BIT); } +#if INCLUDE_CDS if (UseSharedSpaces && DumpPrivateMappingsInCore) { set_coredump_filter(FILE_BACKED_PVT_BIT); } +#endif return JNI_OK; } // Mark the polling page as unreadable
13-12-2018