hotspot/src/share/vm/utilities/vmError.cpp
changeset 39401 318e93828de1
parent 39274 940f0e8e9ec2
child 39626 f611156cf276
--- a/hotspot/src/share/vm/utilities/vmError.cpp	Mon Jun 20 22:02:20 2016 -0700
+++ b/hotspot/src/share/vm/utilities/vmError.cpp	Tue Jun 21 09:19:53 2016 +0200
@@ -908,6 +908,7 @@
   // STEP("printing heap information")
 
   if (Universe::is_fully_initialized()) {
+    MutexLocker hl(Heap_lock);
     Universe::heap()->print_on_error(st);
     st->cr();
     st->print_cr("Polling page: " INTPTR_FORMAT, p2i(os::get_polling_page()));