TODO(willchan): Investigate whether or not lining this much is harmful to performance. This is equivalent to do_malloc() except when tc_new_mode is set to true. Otherwise, it will run the std::new_handler if set.
| 1043 | // This is equivalent to do_malloc() except when tc_new_mode is set to true. |
| 1044 | // Otherwise, it will run the std::new_handler if set. |
| 1045 | inline void* do_malloc_or_cpp_alloc(size_t size) { |
| 1046 | return tc_new_mode ? cpp_alloc(size, true) : do_malloc(size); |
| 1047 | } |
| 1048 | |
| 1049 | inline void* do_malloc_no_errno_or_cpp_alloc(size_t size) { |
| 1050 | return tc_new_mode ? cpp_alloc(size, true) : do_malloc_no_errno(size); |
no test coverage detected