diff options
author | jkim <jkim@FreeBSD.org> | 2017-05-31 12:53:51 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2017-05-31 12:53:51 +0800 |
commit | 9ab6b310b04dd5851f06d8b9ad31c409cfd6f0c8 (patch) | |
tree | 5d603d48560ffbb93cccc09ade1e01a332ef1bfe /java/openjdk7 | |
parent | 6e726ed0ef621ad38a826ea0f79f03cb120281de (diff) | |
download | freebsd-ports-gnome-9ab6b310b04dd5851f06d8b9ad31c409cfd6f0c8.tar.gz freebsd-ports-gnome-9ab6b310b04dd5851f06d8b9ad31c409cfd6f0c8.tar.zst freebsd-ports-gnome-9ab6b310b04dd5851f06d8b9ad31c409cfd6f0c8.zip |
Fix compilation with Clang 4.0.
Diffstat (limited to 'java/openjdk7')
-rw-r--r-- | java/openjdk7/files/patch-hotspot_src_share_vm_opto_lcm.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/openjdk7/files/patch-hotspot_src_share_vm_opto_lcm.cpp b/java/openjdk7/files/patch-hotspot_src_share_vm_opto_lcm.cpp new file mode 100644 index 000000000000..cc4f623ccd8e --- /dev/null +++ b/java/openjdk7/files/patch-hotspot_src_share_vm_opto_lcm.cpp @@ -0,0 +1,11 @@ +--- hotspot/src/share/vm/opto/lcm.cpp.orig 2017-05-30 23:06:51 UTC ++++ hotspot/src/share/vm/opto/lcm.cpp +@@ -57,7 +57,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 |