CVSROOT:        /cvs
Module name:    ports
Changes by:     k...@cvs.openbsd.org    2023/05/18 19:43:09

Modified files:
        devel/jdk/1.8  : Makefile 
        devel/jdk/1.8/patches: patch-hotspot_src_os_bsd_vm_os_bsd_cpp 
Added files:
        devel/jdk/1.8/patches: patch-hotspot_src_share_vm_runtime_os_hpp 
                               patch-hotspot_src_share_vm_runtime_thread_cpp 

Log message:
Disable stack guard pages in the primordial thread only
to fix java integration with programs like 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.

Reply via email to