commit | c4493874cd3b662d2778f3b79a3096ae61569b67 | [log] [tgz] |
---|---|---|
author | Aliaksey Kandratsenka <alk@tut.by> | Sun Aug 02 05:20:15 2015 |
committer | Aliaksey Kandratsenka <alk@tut.by> | Mon Aug 03 02:06:21 2015 |
tree | 9d572d23f8c6880eb125af92deb4b7a3a0f4ec3e | |
parent | 09448a8fe977eaa083340c2504caac8820832179 [diff] |
deal with OOM handling in one place and prior to returning result This commit removes 4 (four!) duplicates of C++ OOM handling. And introduces one helper for that. Other change is that malloc doesn't have to check tc_new_mode anymore until it _actually_ deals with OOM condition. Which shaves off couple instructions from fast-path.