提交 f08a9816 编写于 作者: Z zgu

8187331: VirtualSpaceList tracks free space on wrong node

Summary: Fixed miscounting of virtual space node's free memory
Reviewed-by: shade, coleenp, stuefe
上级 f8a9354f
...@@ -1200,7 +1200,7 @@ VirtualSpaceList::VirtualSpaceList(ReservedSpace rs) : ...@@ -1200,7 +1200,7 @@ VirtualSpaceList::VirtualSpaceList(ReservedSpace rs) :
} }
size_t VirtualSpaceList::free_bytes() { 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. // Allocate another meta virtual space and add it to the list.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册