ports/java/openjdk8/files
Jung-uk Kim 34f4fb6411 Add support for "-XX:+UseLargePages" option.
Excerpted from the original submission:

"FreeBSD on several architectures automatically utilizes superpages.  So,
for the JVM's JIT-compiled code cache and data heap, much of those regions
are already using superpages.  However, the -XX:+UseLargePages option still
serves a useful, if secondary, purpose on FreeBSD.  Essentially, it informs
the JVM's platform-independent layer what the supported page sizes are.  So,
when memory is mmap(2)ed and munmap(2)ed within the code cache and data
heap, the addresses and sizes will be superpage-aligned and a multiple of
the superpage size, respectively.  Currently, without this patch, the code
cache, for example, typically starts at an unaligned address, so the initial
portion of the code cache can never be a superpage.  Similarly, unaligned
munmap(2)s on the data heap force the kernel to demote superpages to 4KB
pages, and this patch eliminates those demotions.

This patch both introduces the code needed on FreeBSD to implement
-XX:+UseLargePages and deletes code that was copied from Linux that is, to
the best of my knowledge, useless on any version of BSD, i.e., UseHugeTLBFS
and UseSHM.  The additions are in part based on the Solaris version of
os_solaris.cpp, e.g., the sorting of the page sizes array."

Note I did minor style cleanup and regenerated the patches.

Submitted by:	alc
2017-12-01 01:56:02 +00:00
..
bsd.fontconfig.properties.in
cacerts
fpuhack.patch
jdk-test-javax-imageio-plugins-jpeg-truncated.jpg
nashorn-test-script-jfx-flyingimage-golden-bsd.png
nashorn-test-script-jfx-kaleidoscope-golden-bsd.png
nashorn-test-script-jfx-spread-golden-bsd.png
patch-bsd . Update to 8u152. 2017-11-19 05:14:20 +00:00
patch-bsd-test . Update to 8u152. 2017-11-19 05:14:20 +00:00
patch-common-autoconf-toolchain.m4
patch-configure
patch-hotspot-agent-src-share-classes-sun-jvm-hotspot-debugger-bsd-BsdThread.java
patch-hotspot-src-os-bsd-vm-os_bsd.cpp
patch-hotspot_src_os__cpu_bsd__zero_vm_atomic__bsd__zero.inline.hpp
patch-hotspot_src_os__cpu_bsd__zero_vm_orderAccess__bsd__zero.inline.hpp
patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp
patch-hotspot_src_os_bsd_vm_globals__bsd.hpp Add support for "-XX:+UseLargePages" option. 2017-12-01 01:56:02 +00:00
patch-hotspot_src_os_bsd_vm_os__bsd.cpp Add support for "-XX:+UseLargePages" option. 2017-12-01 01:56:02 +00:00
patch-hotspot_src_os_bsd_vm_os__bsd.hpp Add support for "-XX:+UseLargePages" option. 2017-12-01 01:56:02 +00:00
patch-hotspot_src_share_vm_runtime_arguments.cpp Add support for "-XX:+UseLargePages" option. 2017-12-01 01:56:02 +00:00
patch-jdk-make-lib-Awt2dLibraries.gmk
patch-jdk-make-lib-CoreLibraries.gmk
patch-jdk-make-lib-ServiceabilityLibraries.gmk
patch-jdk-src-bsd-doc-man-javadoc.1
patch-jdk-src-share-classes-com-sun-java-swing-plaf-gtk-Metacity.java
patch-jdk-src-share-classes-sun-applet-AppletPanel.java
patch-jdk-src-share-classes-sun-applet-AppletViewerPanel.java
patch-jdk-src-share-classes-sun-print-PSPrinterJob.java
patch-jdk-src-share-native-sun-font-freetypeScaler.c
patch-jdk-src-solaris-classes-sun-nio-fs-BsdFileSystemProvider.java
patch-jdk-src-solaris-classes-sun-nio-fs-DefaultFileSystemProvider.java
patch-jdk_src_solaris_native_sun_management_OperatingSystemImpl.c