Soft-limit for arenas
authorJonathan Coens <jcoens@fb.com>
Thu, 4 Apr 2013 22:25:52 +0000 (15:25 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 21 Apr 2013 20:20:58 +0000 (13:20 -0700)
commit5e3674ca805202eee22829ee936c11a38dabd6ab
treea639316e443af6e3d79b44bf2dcd3b03d9c62e84
parent005a6c1f172f4508a9e00b413175750061174724
Soft-limit for arenas

Summary: Create an artificial limit on an arena to start throwing bad_alloc before running out of system memory

Test Plan: adjust unit test

Reviewed By: marcelo.juchem@fb.com

FB internal diff: D762695
folly/Arena-inl.h
folly/Arena.h
folly/test/ArenaTest.cpp