From 626639607592547c8252b3a6f8c9cb9d5b64c030 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sun, 7 Jul 2024 19:32:30 +0800 Subject: [PATCH] os_bsd.cpp: allow headless on Apple --- hotspot/src/os/bsd/vm/os_bsd.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git hotspot/src/os/bsd/vm/os_bsd.cpp hotspot/src/os/bsd/vm/os_bsd.cpp index 5bc3693334..fd2c504e4f 100644 --- hotspot/src/os/bsd/vm/os_bsd.cpp +++ hotspot/src/os/bsd/vm/os_bsd.cpp @@ -4847,10 +4847,6 @@ int os::fork_and_exec(char* cmd, bool use_vfork_if_available) { // as libawt.so, and renamed libawt_xawt.so // bool os::is_headless_jre() { -#ifdef __APPLE__ - // We no longer build headless-only on Mac OS X - return false; -#else struct stat statbuf; char buf[MAXPATHLEN]; char libmawtpath[MAXPATHLEN]; @@ -4882,7 +4878,6 @@ bool os::is_headless_jre() { if (::stat(libmawtpath, &statbuf) == 0) return false; return true; -#endif } // Get the default path to the core file