------------------------------------------------------------
revno: 697
committer: Matthias Klose <d...@ubuntu.com>
branch nick: openjdk8
timestamp: Wed 2017-02-01 12:54:31 +0100
message:
    * Fix 8164293: HotSpot leaking memory in long-running requests.
      Closes: #853758.
added:
  debian/patches/8164293.diff
modified:
  debian/changelog
  debian/rules


--
lp:~openjdk/openjdk/openjdk8
https://code.launchpad.net/~openjdk/openjdk/openjdk8

Your team Debian Java Maintainers is subscribed to branch 
lp:~openjdk/openjdk/openjdk8.
To unsubscribe from this branch go to 
https://code.launchpad.net/~openjdk/openjdk/openjdk8/+edit-subscription
=== modified file 'debian/changelog'
--- debian/changelog	2017-01-26 14:36:02 +0000
+++ debian/changelog	2017-02-01 11:54:31 +0000
@@ -1,8 +1,10 @@
 openjdk-8 (8u121-b13-3) UNRELEASED; urgency=medium
 
   * Really don't build the JamVM VM.
+  * Fix 8164293: HotSpot leaking memory in long-running requests.
+    Closes: #853758.
 
- -- Matthias Klose <d...@ubuntu.com>  Tue, 24 Jan 2017 14:38:38 +0100
+ -- Matthias Klose <d...@ubuntu.com>  Wed, 01 Feb 2017 12:52:19 +0100
 
 openjdk-8 (8u121-b13-2) unstable; urgency=medium
 

=== added file 'debian/patches/8164293.diff'
--- debian/patches/8164293.diff	1970-01-01 00:00:00 +0000
+++ debian/patches/8164293.diff	2017-02-01 11:54:31 +0000
@@ -0,0 +1,49 @@
+
+# HG changeset patch
+# User jcm
+# Date 1484137609 28800
+# Node ID 8dfbb002197a8e9dfa2881d33ec282fd7a449c25
+# Parent  c7140a91e56a846a9691f81c744fd26609de093c
+8164293: HotSpot leaking memory in long-running requests
+Summary: Applied RMs in sweep_code_cache and related codes.
+Reviewed-by: kvn, thartmann
+
+diff -r c7140a91e56a -r 8dfbb002197a src/share/vm/code/nmethod.cpp
+--- a/hotspot/src/share/vm/code/nmethod.cpp	Thu Jan 05 18:55:20 2017 -0500
++++ b/hotspot/src/share/vm/code/nmethod.cpp	Wed Jan 11 04:26:49 2017 -0800
+@@ -1151,6 +1151,7 @@
+ // Clear ICStubs of all compiled ICs
+ void nmethod::clear_ic_stubs() {
+   assert_locked_or_safepoint(CompiledIC_lock);
++  ResourceMark rm;
+   RelocIterator iter(this);
+   while(iter.next()) {
+     if (iter.type() == relocInfo::virtual_call_type) {
+diff -r c7140a91e56a -r 8dfbb002197a src/share/vm/runtime/sweeper.cpp
+--- a/hotspot/src/share/vm/runtime/sweeper.cpp	Thu Jan 05 18:55:20 2017 -0500
++++ b/hotspot/src/share/vm/runtime/sweeper.cpp	Wed Jan 11 04:26:49 2017 -0800
+@@ -319,6 +319,7 @@
+ }
+ 
+ void NMethodSweeper::sweep_code_cache() {
++  ResourceMark rm;
+   Ticks sweep_start_counter = Ticks::now();
+ 
+   _flushed_count                = 0;
+@@ -626,6 +627,7 @@
+ // state of the code cache if it's requested.
+ void NMethodSweeper::log_sweep(const char* msg, const char* format, ...) {
+   if (PrintMethodFlushing) {
++    ResourceMark rm;
+     stringStream s;
+     // Dump code cache state into a buffer before locking the tty,
+     // because log_state() will use locks causing lock conflicts.
+@@ -643,6 +645,7 @@
+   }
+ 
+   if (LogCompilation && (xtty != NULL)) {
++    ResourceMark rm;
+     stringStream s;
+     // Dump code cache state into a buffer before locking the tty,
+     // because log_state() will use locks causing lock conflicts.
+

=== modified file 'debian/rules'
--- debian/rules	2017-01-26 14:36:02 +0000
+++ debian/rules	2017-02-01 11:54:31 +0000
@@ -395,6 +395,7 @@
 	openjdk-ppc64el-S8170153.patch \
 	jdk-ppc64el-S8170153.patch \
 	jdk-841269-filechooser.patch \
+	8164293.diff \
 
 #	jdk-derived-font-size.diff \
 # FIXME: update patches

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to