If this tracker has a limit, checks the limit and attempts to free up some memory if the hard limit is exceeded by calling any added GC functions. Returns true if the limit is exceeded after calling the GC functions. Returns false if there is no limit or consumption is under the limit.
| 264 | /// limit is exceeded after calling the GC functions. Returns false if there is no limit |
| 265 | /// or consumption is under the limit. |
| 266 | bool LimitExceeded(MemLimit mode) { |
| 267 | if (UNLIKELY(CheckLimitExceeded(mode))) return LimitExceededSlow(mode); |
| 268 | return false; |
| 269 | } |
| 270 | |
| 271 | /// Returns the maximum consumption that can be made without exceeding the limit on |
| 272 | /// this tracker or any of its parents. Returns int64_t::max() if there are no |