Link Here
|
1 |
--- work/jdk17u-jdk-17.0.5-8-1/src/hotspot/share/runtime/arguments.cpp.orig 2023-01-15 10:13:55.469227000 -0800 |
2 |
+++ work/jdk17u-jdk-17.0.5-8-1/src/hotspot/share/runtime/arguments.cpp 2023-01-15 10:20:49.218102000 -0800 |
3 |
@@ -1557,6 +1557,10 @@ |
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 @@ |
15 |
} |
16 |
} |
17 |
} |
18 |
+# endif // __FreeBSD__ && AARCH64 |
19 |
#endif // _LP64 |
20 |
} |
21 |
|