changeset 8674:b0f7174de2c5

8187331: VirtualSpaceList tracks free space on wrong node Summary: Fixed miscounting of virtual space node's free memory Reviewed-by: shade, coleenp, stuefe
author zgu
date Wed, 20 Sep 2017 20:54:29 -0400
parents 940519c00887
children 8c3e62bb99f3
files src/share/vm/memory/metaspace.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.cpp	Fri Oct 06 22:40:31 2017 -0400
+++ b/src/share/vm/memory/metaspace.cpp	Wed Sep 20 20:54:29 2017 -0400
@@ -1200,7 +1200,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.