8155730: HeapInfoDCmd should get Heap_lock

Reviewed-by: tschatzl, jprovino
This commit is contained in:
Yasumasa Suenaga 2016-06-21 09:19:53 +02:00
parent 79377a1bf1
commit 5ae683a18f
3 changed files with 3 additions and 1 deletions

View file

@ -908,6 +908,7 @@ void VMError::print_vm_info(outputStream* st) {
// 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()));