View | Details | Raw Unified | Return to bug 260187 | Differences between
and this patch

Collapse All | Expand All

(-)b/java/openjdk17/Makefile (+5 lines)
Lines 162-167 CONFIGURE_ARGS+= --disable-dtrace Link Here
162
.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
162
.if ${ARCH} == powerpc64 && ${OSREL:C/\.[0-9]//} == 12
163
EXTRA_PATCHES=		${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
163
EXTRA_PATCHES=		${PATCHDIR}/extra-patch-src_hotspot_cpu_ppc_vm__version__ppc.hpp
164
.endif
164
.endif
165
.if ${ARCH} == aarch64
166
CONFIGURE_ARGS+=	--with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers
167
MAKE_ENV+=		JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers"
168
EXTRA_PATCHES=		${PATCHDIR}/extra-patch-src_hotspot_share_runtime_arguments.cpp
169
.endif
165
170
166
.if empty(ICONV_LIB)
171
.if empty(ICONV_LIB)
167
ICONV_CFLAGS=	-DLIBICONV_PLUG
172
ICONV_CFLAGS=	-DLIBICONV_PLUG
(-)b/java/openjdk17/files/extra-patch-src_hotspot_share_runtime_arguments.cpp (+21 lines)
Added Link Here
1
--- src/hotspot/share/runtime/arguments.cpp.orig	2022-10-20 06:03:11 UTC
2
+++ src/hotspot/share/runtime/arguments.cpp
3
@@ -1557,6 +1557,10 @@ void Arguments::set_use_compressed_klass_ptrs() {
4
 // set_use_compressed_oops().
5
 void Arguments::set_use_compressed_klass_ptrs() {
6
 #ifdef _LP64
7
+#  if defined(__FreeBSD__) && defined(AARCH64)
8
+  FLAG_SET_DEFAULT(UseCompressedClassPointers, false);
9
+  FLAG_SET_ERGO(UseCompressedClassPointers, false);
10
+#  else
11
   // On some architectures, the use of UseCompressedClassPointers implies the use of
12
   // UseCompressedOops. The reason is that the rheap_base register of said platforms
13
   // is reused to perform some optimized spilling, in order to use rheap_base as a
14
@@ -1582,6 +1586,7 @@ void Arguments::set_use_compressed_klass_ptrs() {
15
       }
16
     }
17
   }
18
+#  endif // __FreeBSD__ && AARCH64
19
 #endif // _LP64
20
 }
21
 

Return to bug 260187