CVSROOT: /cvs Module name: ports Changes by: k...@cvs.openbsd.org 2023/05/17 11:06:10
Modified files: devel/jdk/11 : Makefile devel/jdk/11/patches: patch-make_common_NativeCompilation_gmk Added files: devel/jdk/11/patches: patch-src_hotspot_os_bsd_os_bsd_cpp patch-src_hotspot_share_runtime_os_hpp patch-src_hotspot_share_runtime_thread_cpp Log message: Disable stack guard pages in the primordial thread only to fix java integration with libreoffice. The primordial thread's stack permissions are immutable so stack guard pages can not be placed on it. Fortunately the launcher for normal java programs uses a separate thread to start the JVM and stack guard pages may be placed on thread stacks. Libreoffice, on the other hand, launches the JVM in the primordial thread and stack guard pages fail to be placed. Disabling stack guard pages for the primordial thread allows libreoffice to use java again, but with the side effect of breaking StackOverflowError exceptions on the primordial thread only. Reviewed by semarie@ & robert@. Okay robert@