< prev index next >
share/runtime/java.cpp
Print this page
rev 1 : G1GC+POGC+NVDIMM Patch with latest comments incorporated from all.
@@ -590,10 +590,20 @@
notify_vm_shutdown();
}
void vm_shutdown()
{
+ if (os::has_nvdimm() && UseParallelOldGC) {
+ // all expand/shrinks for UseParallelOldGC need nvdimm_fd to
+ // remain open so that more/less sized can be committed to nvdimm
+#if defined(_WINDOWS)
+ // Do nothing as file is already closed as all the memory for OldGen was
+ // mapped in one shot for NVDIMM.
+#else
+ os::close(os::nvdimm_fd());
+#endif
+ }
vm_perform_shutdown_actions();
os::wait_for_keypress_at_exit();
os::shutdown();
}
< prev index next >