--- old/src/hotspot/share/runtime/os.hpp 2018-09-13 12:39:21.637026956 +0530 +++ new/src/hotspot/share/runtime/os.hpp 2018-09-13 12:39:21.517026956 +0530 @@ -539,7 +539,9 @@ // run cmd in a separate process and return its exit code; or -1 on failures static int fork_and_exec(char *cmd); - +#if defined(LINUX) + static int vfork_and_exec(char *cmd); +#endif // Call ::exit() on all platforms but Windows static void exit(int num);