diff options
author | glewis <glewis@FreeBSD.org> | 2017-01-16 06:51:52 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2017-01-16 06:51:52 +0800 |
commit | 88f6941c5f7ca37b04f8ca216edda78fe6f8dd12 (patch) | |
tree | 30a5aae90a81058e8e0e9ea12cf9ab664470b527 /java | |
parent | 624bfe81b7905e204ed90c9dbf9d8edbdd3ecc27 (diff) | |
download | freebsd-ports-gnome-88f6941c5f7ca37b04f8ca216edda78fe6f8dd12.tar.gz freebsd-ports-gnome-88f6941c5f7ca37b04f8ca216edda78fe6f8dd12.tar.zst freebsd-ports-gnome-88f6941c5f7ca37b04f8ca216edda78fe6f8dd12.zip |
. Fix compilation with Clang 4.0
PR: 216016
Submitted by: jbeich@
Diffstat (limited to 'java')
-rw-r--r-- | java/openjdk8/Makefile | 2 | ||||
-rw-r--r-- | java/openjdk8/files/patch-hotspot_src_share_vm_opto_lcm.cpp | 11 | ||||
-rw-r--r-- | java/openjdk8/files/patch-hotspot_src_share_vm_runtime_virtualspace.cpp | 11 |
3 files changed, 23 insertions, 1 deletions
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index 49c2d28531ee..d4fae8dfa93a 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -2,7 +2,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//} -PORTREVISION= 2 +PORTREVISION= 3 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 \ diff --git a/java/openjdk8/files/patch-hotspot_src_share_vm_opto_lcm.cpp b/java/openjdk8/files/patch-hotspot_src_share_vm_opto_lcm.cpp new file mode 100644 index 000000000000..f0db95303152 --- /dev/null +++ b/java/openjdk8/files/patch-hotspot_src_share_vm_opto_lcm.cpp @@ -0,0 +1,11 @@ +--- hotspot/src/share/vm/opto/lcm.cpp.orig ++++ hotspot/src/share/vm/opto/lcm.cpp +@@ -49,7 +49,7 @@ + // Check whether val is not-null-decoded compressed oop, + // i.e. will grab into the base of the heap if it represents NULL. + static bool accesses_heap_base_zone(Node *val) { +- if (Universe::narrow_oop_base() > 0) { // Implies UseCompressedOops. ++ if (Universe::narrow_oop_base() != NULL) { // Implies UseCompressedOops. + if (val && val->is_Mach()) { + if (val->as_Mach()->ideal_Opcode() == Op_DecodeN) { + // This assumes all Decodes with TypePtr::NotNull are matched to nodes that diff --git a/java/openjdk8/files/patch-hotspot_src_share_vm_runtime_virtualspace.cpp b/java/openjdk8/files/patch-hotspot_src_share_vm_runtime_virtualspace.cpp new file mode 100644 index 000000000000..3f527642d742 --- /dev/null +++ b/java/openjdk8/files/patch-hotspot_src_share_vm_runtime_virtualspace.cpp @@ -0,0 +1,11 @@ +--- hotspot/src/share/vm/runtime/virtualspace.cpp.orig ++++ hotspot/src/share/vm/runtime/virtualspace.cpp +@@ -342,7 +342,7 @@ ReservedHeapSpace::ReservedHeapSpace(siz + (UseCompressedOops && (Universe::narrow_oop_base() != NULL) && + Universe::narrow_oop_use_implicit_null_checks()) ? + lcm(os::vm_page_size(), alignment) : 0) { +- if (base() > 0) { ++ if (base() != NULL) { + MemTracker::record_virtual_memory_type((address)base(), mtJavaHeap); + } + |