8187331: VirtualSpaceList tracks free space on wrong node
authorzgu
Wed, 20 Sep 2017 20:54:29 -0400
changeset 47543 198cb8e20aef
parent 47536 7e70a57d34d8
child 47544 56fa7dfd11cd
8187331: VirtualSpaceList tracks free space on wrong node Summary: Fixed miscounting of virtual space node's free memory Reviewed-by: shade, coleenp, stuefe
src/hotspot/share/memory/metaspace.cpp
--- a/src/hotspot/share/memory/metaspace.cpp	Tue Sep 26 16:04:40 2017 +0000
+++ b/src/hotspot/share/memory/metaspace.cpp	Wed Sep 20 20:54:29 2017 -0400
@@ -1291,7 +1291,7 @@
 }
 
 size_t VirtualSpaceList::free_bytes() {
-  return virtual_space_list()->free_words_in_vs() * BytesPerWord;
+  return current_virtual_space()->free_words_in_vs() * BytesPerWord;
 }
 
 // Allocate another meta virtual space and add it to the list.