folly/IndexedMemPool: correct an erroneous test for failed mmap
authorJim Meyering <meyering@fb.com>
Tue, 5 Aug 2014 18:45:25 +0000 (11:45 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 14 Aug 2014 18:49:04 +0000 (11:49 -0700)
commitaf59f4c1d4161770c276b5a0419c84f26d454f92
treedcc6dd03885cc2f7f8ab491441f55d8c68b05548
parent7ce33845b2248016806757217e513cce1ee270b6
folly/IndexedMemPool: correct an erroneous test for failed mmap

Summary:
* folly/IndexedMemPool.h (IndexedMemPool): Correct the test for
failed mmap.  Upon failure, it returns MAP_FAILED, not nullptr.

Test Plan:
fbconfig -r folly/test:indexed_mem_pool_test && fbmake runtests

Reviewed By: ngbronson@fb.com

FB internal diff: D1480389

Tasks: 4846893
@override-unit-failures
folly/IndexedMemPool.h