Remove bias against partial pages in find_freeish_pages
commit2df2efd2469229b03a47fe3b7ae63ec7120a5c03
authorDouglas Katzman <dougk@google.com>
Sat, 7 Oct 2017 02:06:13 +0000 (6 22:06 -0400)
committerDouglas Katzman <dougk@google.com>
Sat, 7 Oct 2017 02:19:40 +0000 (6 22:19 -0400)
tree3c68a36496917fd83088583dafd64e0d8d4605a7
parentac0908c376eab765dc2b82a768d79ce545c86adb
Remove bias against partial pages in find_freeish_pages

The allocator fragments memory slightly less when it has freedom to
continue where it left off on a page.
Concerns of excessive conservativism no longer pertain.

Previously there could have been a ripple effect, if, say an object began at
the end of one page, consumed the next whole page, and two words more from the
page after that. A conservative reference from the stack would have pinned
thee pages worth of objects. This is no longer the case.
src/runtime/gencgc.c