aboutsummaryrefslogtreecommitdiffstats
path: root/hotspot/.hg/patches/JVM_SetVmMemoryPressure.patch
blob: b131d97a2356993a0071042acdd7a60c77081394 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# HG changeset patch
# Parent  c903378d8d1d029168ca82a20c602369d6fb6c11

diff -r c903378d8d1d make/aix/makefiles/mapfile-vers-debug
--- a/make/aix/makefiles/mapfile-vers-debug	Mon Dec 07 21:47:43 2015 -0800
+++ b/make/aix/makefiles/mapfile-vers-debug	Mon Dec 07 22:40:01 2015 -0800
@@ -227,6 +227,8 @@
                 JVM_SetProtectionDomain;
                 JVM_SetSockOpt;
                 JVM_SetThreadPriority;
+                JVM_GetVmMemoryPressure;
+                JVM_SetVmMemoryPressure;
                 JVM_Sleep;
                 JVM_Socket;
                 JVM_SocketAvailable;
diff -r c903378d8d1d make/aix/makefiles/mapfile-vers-product
--- a/make/aix/makefiles/mapfile-vers-product	Mon Dec 07 21:47:43 2015 -0800
+++ b/make/aix/makefiles/mapfile-vers-product	Mon Dec 07 22:40:01 2015 -0800
@@ -225,6 +225,8 @@
                 JVM_SetProtectionDomain;
                 JVM_SetSockOpt;
                 JVM_SetThreadPriority;
+                JVM_GetVmMemoryPressure;
+                JVM_SetVmMemoryPressure;
                 JVM_Sleep;
                 JVM_Socket;
                 JVM_SocketAvailable;
diff -r c903378d8d1d make/bsd/makefiles/mapfile-vers-debug
--- a/make/bsd/makefiles/mapfile-vers-debug	Mon Dec 07 21:47:43 2015 -0800
+++ b/make/bsd/makefiles/mapfile-vers-debug	Mon Dec 07 22:40:01 2015 -0800
@@ -228,6 +228,8 @@
                 _JVM_SetPrimitiveArrayElement
                 _JVM_SetSockOpt
                 _JVM_SetThreadPriority
+                _JVM_GetVmMemoryPressure
+                _JVM_SetVmMemoryPressure
                 _JVM_Sleep
                 _JVM_Socket
                 _JVM_SocketAvailable
diff -r c903378d8d1d make/bsd/makefiles/mapfile-vers-product
--- a/make/bsd/makefiles/mapfile-vers-product	Mon Dec 07 21:47:43 2015 -0800
+++ b/make/bsd/makefiles/mapfile-vers-product	Mon Dec 07 22:40:01 2015 -0800
@@ -228,6 +228,8 @@
                 _JVM_SetPrimitiveArrayElement
                 _JVM_SetSockOpt
                 _JVM_SetThreadPriority
+                _JVM_GetVmMemoryPressure
+                _JVM_SetVmMemoryPressure
                 _JVM_Sleep
                 _JVM_Socket
                 _JVM_SocketAvailable
diff -r c903378d8d1d make/linux/makefiles/mapfile-vers-debug
--- a/make/linux/makefiles/mapfile-vers-debug	Mon Dec 07 21:47:43 2015 -0800
+++ b/make/linux/makefiles/mapfile-vers-debug	Mon Dec 07 22:40:01 2015 -0800
@@ -230,6 +230,8 @@
                 JVM_SetPrimitiveArrayElement;
                 JVM_SetSockOpt;
                 JVM_SetThreadPriority;
+                JVM_GetVmMemoryPressure;
+                JVM_SetVmMemoryPressure;
                 JVM_Sleep;
                 JVM_Socket;
                 JVM_SocketAvailable;
diff -r c903378d8d1d make/linux/makefiles/mapfile-vers-product
--- a/make/linux/makefiles/mapfile-vers-product	Mon Dec 07 21:47:43 2015 -0800
+++ b/make/linux/makefiles/mapfile-vers-product	Mon Dec 07 22:40:01 2015 -0800
@@ -230,6 +230,8 @@
                 JVM_SetPrimitiveArrayElement;
                 JVM_SetSockOpt;
                 JVM_SetThreadPriority;
+                JVM_GetVmMemoryPressure;
+                JVM_SetVmMemoryPressure;
                 JVM_Sleep;
                 JVM_Socket;
                 JVM_SocketAvailable;
diff -r c903378d8d1d make/solaris/makefiles/mapfile-vers
--- a/make/solaris/makefiles/mapfile-vers	Mon Dec 07 21:47:43 2015 -0800
+++ b/make/solaris/makefiles/mapfile-vers	Mon Dec 07 22:40:01 2015 -0800
@@ -230,6 +230,8 @@
                 JVM_SetPrimitiveArrayElement;
                 JVM_SetSockOpt;
                 JVM_SetThreadPriority;
+                JVM_GetVmMemoryPressure;
+                JVM_SetVmMemoryPressure;
                 JVM_Sleep;
                 JVM_Socket;
                 JVM_SocketAvailable;
diff -r c903378d8d1d src/share/vm/prims/jvm.cpp
--- a/src/share/vm/prims/jvm.cpp	Mon Dec 07 21:47:43 2015 -0800
+++ b/src/share/vm/prims/jvm.cpp	Mon Dec 07 22:40:01 2015 -0800
@@ -4305,6 +4305,15 @@
   return Management::get_jmm_interface(version);
 JVM_END
 
+JVM_ENTRY_NO_ENV(jint, JVM_GetVmMemoryPressure())
+  // Do nothing, this function is only to make management.dll happy
+  return 0;
+JVM_END
+
+JVM_ENTRY_NO_ENV(void, JVM_SetVmMemoryPressure(jint pressure))
+  // Do nothing, this function is only to make management.dll happy
+JVM_END
+
 // com.sun.tools.attach.VirtualMachine agent properties support
 //
 // Initialize the agent properties with the properties maintained in the VM
diff -r c903378d8d1d src/share/vm/prims/jvm.h
--- a/src/share/vm/prims/jvm.h	Mon Dec 07 21:47:43 2015 -0800
+++ b/src/share/vm/prims/jvm.h	Mon Dec 07 22:40:01 2015 -0800
@@ -1490,6 +1490,12 @@
 JNIEXPORT void* JNICALL
 JVM_GetManagement(jint version);
 
+JNIEXPORT jint JNICALL
+JVM_GetVmMemoryPressure();
+
+JNIEXPORT void JNICALL
+JVM_SetVmMemoryPressure(jint pressure);
+
 /*
  * com.sun.tools.attach.VirtualMachine support
  *