diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2014-04-01 21:30:27 -0700 |
---|---|---|
committer | Aliaksey Kandratsenka <alk@tut.by> | 2014-04-01 22:07:31 -0700 |
commit | 0399af1019240e2d9127a588ddc8e31ff4656df0 (patch) | |
tree | d75817c2c2d6fdf6f2e6ef5fb3a39fd9e9ec7b5e /src/page_heap_allocator.h | |
parent | d77317247e1c8de1ea4e0419318b26f636e64431 (diff) | |
download | gperftools-0399af1019240e2d9127a588ddc8e31ff4656df0.tar.gz |
added tc_malloc_skip_new_handler
This is port of corresponding chromium change at:
https://codereview.chromium.org/55333002/
Basic idea is that sometimes apps that use tc_set_new_mode in order to
have C++ out-of-memory handler catch OOMs in malloc, need to invoke
usual malloc that returns 0 on OOM.
That new API is exactly for that. It'll always return NULL on OOM even
if tc_new_mode is set to true.
Diffstat (limited to 'src/page_heap_allocator.h')
0 files changed, 0 insertions, 0 deletions