summaryrefslogtreecommitdiff
path: root/java/openjdk8/Makefile
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-12-01 01:56:02 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-12-01 01:56:02 +0000
commit34f4fb6411e13f0dff94a8ffd7f90d08bb91d907 (patch)
tree4d47c6319b42ca7cba1162eacea533a76354c4da /java/openjdk8/Makefile
parentUpdate to 2.003004 (diff)
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
Notes
Notes: svn path=/head/; revision=455243
Diffstat (limited to 'java/openjdk8/Makefile')
-rw-r--r--java/openjdk8/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile
index e4d143acb27f..12a1b0e8a96a 100644
--- a/java/openjdk8/Makefile
+++ b/java/openjdk8/Makefile
@@ -2,6 +2,7 @@
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//}
+PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}/promoted/b${DIST_BUILD_NUMBER}/:jdk \
https://adopt-openjdk.ci.cloudbees.com/job/jtreg/${JTREG_JENKINS_BUILD}/artifact/:jtreg \