< prev index next >

src/hotspot/share/utilities/vmError.cpp

Print this page
rev 55555 : [mq]: nestegg

@@ -1368,10 +1368,14 @@
     jio_vsnprintf(_detail_msg, sizeof(_detail_msg), detail_fmt, detail_args);
 
     // first time
     _error_reported = true;
 
+    if (_id == OOM_MALLOC_ERROR || _id == OOM_MMAP_ERROR) {
+      os::release_nestegg();
+    }
+
     reporting_started();
     if (!TestUnresponsiveErrorHandler) {
       // Record reporting_start_time unless we're running the
       // TestUnresponsiveErrorHandler test. For that test we record
       // reporting_start_time at the beginning of the test.
< prev index next >