8187331: VirtualSpaceList tracks free space on wrong node

Wed, 20 Sep 2017 20:54:29 -0400

author
zgu
date
Wed, 20 Sep 2017 20:54:29 -0400
changeset 9057
b0f7174de2c5
parent 9056
940519c00887
child 9058
8c3e62bb99f3

8187331: VirtualSpaceList tracks free space on wrong node
Summary: Fixed miscounting of virtual space node's free memory
Reviewed-by: shade, coleenp, stuefe

src/share/vm/memory/metaspace.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/memory/metaspace.cpp	Fri Oct 06 22:40:31 2017 -0400
     1.2 +++ b/src/share/vm/memory/metaspace.cpp	Wed Sep 20 20:54:29 2017 -0400
     1.3 @@ -1200,7 +1200,7 @@
     1.4  }
     1.5  
     1.6  size_t VirtualSpaceList::free_bytes() {
     1.7 -  return virtual_space_list()->free_words_in_vs() * BytesPerWord;
     1.8 +  return current_virtual_space()->free_words_in_vs() * BytesPerWord;
     1.9  }
    1.10  
    1.11  // Allocate another meta virtual space and add it to the list.

mercurial