You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JVM_SetVmMemoryPressure.patch 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # HG changeset patch
  2. # Parent 8c8ce8112df68432b48c78539fa0bad4728a38a0
  3. diff -r 8c8ce8112df6 make/aix/makefiles/mapfile-vers-debug
  4. --- a/make/aix/makefiles/mapfile-vers-debug Mon Dec 07 17:11:22 2015 -0800
  5. +++ b/make/aix/makefiles/mapfile-vers-debug Mon Dec 07 21:45:08 2015 -0800
  6. @@ -227,6 +227,8 @@
  7. JVM_SetProtectionDomain;
  8. JVM_SetSockOpt;
  9. JVM_SetThreadPriority;
  10. + JVM_GetVmMemoryPressure;
  11. + JVM_SetVmMemoryPressure;
  12. JVM_Sleep;
  13. JVM_Socket;
  14. JVM_SocketAvailable;
  15. diff -r 8c8ce8112df6 make/aix/makefiles/mapfile-vers-product
  16. --- a/make/aix/makefiles/mapfile-vers-product Mon Dec 07 17:11:22 2015 -0800
  17. +++ b/make/aix/makefiles/mapfile-vers-product Mon Dec 07 21:45:08 2015 -0800
  18. @@ -225,6 +225,8 @@
  19. JVM_SetProtectionDomain;
  20. JVM_SetSockOpt;
  21. JVM_SetThreadPriority;
  22. + JVM_GetVmMemoryPressure;
  23. + JVM_SetVmMemoryPressure;
  24. JVM_Sleep;
  25. JVM_Socket;
  26. JVM_SocketAvailable;
  27. diff -r 8c8ce8112df6 make/bsd/makefiles/mapfile-vers-debug
  28. --- a/make/bsd/makefiles/mapfile-vers-debug Mon Dec 07 17:11:22 2015 -0800
  29. +++ b/make/bsd/makefiles/mapfile-vers-debug Mon Dec 07 21:45:08 2015 -0800
  30. @@ -228,6 +228,8 @@
  31. _JVM_SetPrimitiveArrayElement
  32. _JVM_SetSockOpt
  33. _JVM_SetThreadPriority
  34. + _JVM_GetVmMemoryPressure
  35. + _JVM_SetVmMemoryPressure
  36. _JVM_Sleep
  37. _JVM_Socket
  38. _JVM_SocketAvailable
  39. diff -r 8c8ce8112df6 make/bsd/makefiles/mapfile-vers-product
  40. --- a/make/bsd/makefiles/mapfile-vers-product Mon Dec 07 17:11:22 2015 -0800
  41. +++ b/make/bsd/makefiles/mapfile-vers-product Mon Dec 07 21:45:08 2015 -0800
  42. @@ -228,6 +228,8 @@
  43. _JVM_SetPrimitiveArrayElement
  44. _JVM_SetSockOpt
  45. _JVM_SetThreadPriority
  46. + _JVM_GetVmMemoryPressure
  47. + _JVM_SetVmMemoryPressure
  48. _JVM_Sleep
  49. _JVM_Socket
  50. _JVM_SocketAvailable
  51. diff -r 8c8ce8112df6 make/linux/makefiles/mapfile-vers-debug
  52. --- a/make/linux/makefiles/mapfile-vers-debug Mon Dec 07 17:11:22 2015 -0800
  53. +++ b/make/linux/makefiles/mapfile-vers-debug Mon Dec 07 21:45:08 2015 -0800
  54. @@ -230,6 +230,8 @@
  55. JVM_SetPrimitiveArrayElement;
  56. JVM_SetSockOpt;
  57. JVM_SetThreadPriority;
  58. + JVM_GetVmMemoryPressure;
  59. + JVM_SetVmMemoryPressure;
  60. JVM_Sleep;
  61. JVM_Socket;
  62. JVM_SocketAvailable;
  63. diff -r 8c8ce8112df6 make/linux/makefiles/mapfile-vers-product
  64. --- a/make/linux/makefiles/mapfile-vers-product Mon Dec 07 17:11:22 2015 -0800
  65. +++ b/make/linux/makefiles/mapfile-vers-product Mon Dec 07 21:45:08 2015 -0800
  66. @@ -230,6 +230,8 @@
  67. JVM_SetPrimitiveArrayElement;
  68. JVM_SetSockOpt;
  69. JVM_SetThreadPriority;
  70. + JVM_GetVmMemoryPressure;
  71. + JVM_SetVmMemoryPressure;
  72. JVM_Sleep;
  73. JVM_Socket;
  74. JVM_SocketAvailable;
  75. diff -r 8c8ce8112df6 make/solaris/makefiles/mapfile-vers
  76. --- a/make/solaris/makefiles/mapfile-vers Mon Dec 07 17:11:22 2015 -0800
  77. +++ b/make/solaris/makefiles/mapfile-vers Mon Dec 07 21:45:08 2015 -0800
  78. @@ -230,6 +230,8 @@
  79. JVM_SetPrimitiveArrayElement;
  80. JVM_SetSockOpt;
  81. JVM_SetThreadPriority;
  82. + JVM_GetVmMemoryPressure;
  83. + JVM_SetVmMemoryPressure;
  84. JVM_Sleep;
  85. JVM_Socket;
  86. JVM_SocketAvailable;
  87. diff -r 8c8ce8112df6 src/share/vm/prims/jvm.cpp
  88. --- a/src/share/vm/prims/jvm.cpp Mon Dec 07 17:11:22 2015 -0800
  89. +++ b/src/share/vm/prims/jvm.cpp Mon Dec 07 21:45:08 2015 -0800
  90. @@ -4305,6 +4305,14 @@
  91. return Management::get_jmm_interface(version);
  92. JVM_END
  93. +JVM_ENTRY_NO_ENV(jint, JVM_GetVmMemoryPressure())
  94. + // Do nothing, this function is only to make management.dll happy
  95. +JVM_END
  96. +
  97. +JVM_ENTRY_NO_ENV(void, JVM_SetVmMemoryPressure(jint pressure))
  98. + // Do nothing, this function is only to make management.dll happy
  99. +JVM_END
  100. +
  101. // com.sun.tools.attach.VirtualMachine agent properties support
  102. //
  103. // Initialize the agent properties with the properties maintained in the VM
  104. diff -r 8c8ce8112df6 src/share/vm/prims/jvm.h
  105. --- a/src/share/vm/prims/jvm.h Mon Dec 07 17:11:22 2015 -0800
  106. +++ b/src/share/vm/prims/jvm.h Mon Dec 07 21:45:08 2015 -0800
  107. @@ -1490,6 +1490,12 @@
  108. JNIEXPORT void* JNICALL
  109. JVM_GetManagement(jint version);
  110. +JNIEXPORT jint JNICALL
  111. +JVM_GetVmMemoryPressure();
  112. +
  113. +JNIEXPORT void JNICALL
  114. +JVM_SetVmMemoryPressure(jint pressure);
  115. +
  116. /*
  117. * com.sun.tools.attach.VirtualMachine support
  118. *