-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjdk14_new.patch
46 lines (44 loc) · 1.73 KB
/
jdk14_new.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff --git a/make/autoconf/hotspot.m4 b/make/autoconf/hotspot.m4
index 649e48cb6..bc841fc26 100644
--- a/make/autoconf/hotspot.m4
+++ b/make/autoconf/hotspot.m4
@@ -313,6 +313,11 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
HOTSPOT_TARGET_CPU_DEFINE="ARM32"
fi
+ if test "x$OPENJDK_BUILD_CPU" = xarm; then
+ HOTSPOT_BUILD_CPU=arm_32
+ HOTSPOT_BUILD_CPU_DEFINE="ARM32"
+ fi
+
# Verify that dependencies are met for explicitly set features.
if HOTSPOT_CHECK_JVM_FEATURE(jvmti) && ! HOTSPOT_CHECK_JVM_FEATURE(services); then
AC_MSG_ERROR([Specified JVM feature 'jvmti' requires feature 'services'])
diff --git a/src/hotspot/share/memory/metaspaceShared.cpp b/src/hotspot/share/memory/metaspaceShared.cpp
index a181a434d..8ccc83a1c 100644
--- a/src/hotspot/share/memory/metaspaceShared.cpp
+++ b/src/hotspot/share/memory/metaspaceShared.cpp
@@ -71,6 +71,7 @@
#include "utilities/bitMap.inline.hpp"
#include "utilities/defaultStream.hpp"
#include "utilities/hashtable.inline.hpp"
+#include "gc/shared/softRefPolicy.hpp"
#if INCLUDE_G1GC
#include "gc/g1/g1CollectedHeap.hpp"
#endif
diff --git a/src/hotspot/share/oops/constantPool.cpp b/src/hotspot/share/oops/constantPool.cpp
index 61cbf259e..938666dac 100644
--- a/src/hotspot/share/oops/constantPool.cpp
+++ b/src/hotspot/share/oops/constantPool.cpp
@@ -415,8 +415,12 @@ void ConstantPool::remove_unshareable_info() {
}
int ConstantPool::cp_to_object_index(int cp_index) {
+ Array<u2> *map = reference_map();
+ if (map == 0)
+ return _no_index_sentinel;
+
// this is harder don't do this so much.
- int i = reference_map()->find(cp_index);
+ int i = map->find(cp_index);
// We might not find the index for jsr292 call.
return (i < 0) ? _no_index_sentinel : i;
}