~smspillaz/folly/folly-git-master

Viewing all changes in revision 6395.

  • Committer: Facebook Github Bot
  • Author(s): Yedidya Feldblum
  • Date: 2018-11-18 19:28:40 UTC
  • Revision ID: git-v1:385b49946a45c5ff5c1f63bf6a11506e6600dee7
Defer all initialization until allocation in IndexedMemPool

Summary: [Folly] Defer all initialization until allocation in `IndexedMemPool`. This provides a better guarantee that the constructor never dirties the allocated region by accidentally direct-initializing rather than default-initializing the linked list pointers in the mapped region.

Reviewed By: davidtgoldblatt

Differential Revision: D13046558

fbshipit-source-id: 1bde547525e2502607d01e68206d7f8c826baebd

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: