From 944b1a013a21b57a2320798c613a197e88fcc38d Mon Sep 17 00:00:00 2001 From: dholmes Date: Thu, 24 Oct 2013 20:47:18 -0400 Subject: [PATCH] 8025673: [macosx] Disable X11 AWT toolkit Summary: Disable but not completely remove the XAWT and headless toolkits on Mac OS X Reviewed-by: dholmes Contributed-by: david.dehaven@oracle.com --- src/os/bsd/vm/os_bsd.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/bsd/vm/os_bsd.cpp b/src/os/bsd/vm/os_bsd.cpp index f182b2af8..d1afaabf7 100644 --- a/src/os/bsd/vm/os_bsd.cpp +++ b/src/os/bsd/vm/os_bsd.cpp @@ -4746,6 +4746,10 @@ int os::fork_and_exec(char* cmd) { // 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]; @@ -4777,6 +4781,7 @@ bool os::is_headless_jre() { if (::stat(libmawtpath, &statbuf) == 0) return false; return true; +#endif } // Get the default path to the core file -- GitLab