Premultiply kContigTable
commitbf519927811c9fdbcce0cb3827a251ad41c2cfa7
authorEdwin Smith <smith@fb.com>
Tue, 12 Dec 2017 21:09:14 +0000 (12 13:09 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 12 Dec 2017 21:23:28 +0000 (12 13:23 -0800)
tree776e8c17e7419b120ebb79270714f19dc8358f57
parentc056a322c7fcf69c54a9d87cbdb0b689a03bc412
Premultiply kContigTable

Summary:
This table contains the number of objects we will pre-allocate
when splitting a larger free block, or allocating space from
a slab. When using it, we were always multiplying by kSizeIndex2Size[i],
where i is the size class being allocated, so do the multiply
when building the table.

Also move the table to memory-manager.cpp which is the only reference to it.

Reviewed By: alexeyt

Differential Revision: D6248729

fbshipit-source-id: 7cf253c66aa15ae9a42be4f7c911b20cf4fe45c6
hphp/runtime/base/memory-manager.cpp
hphp/runtime/base/memory-manager.h