Returns true if a valid limit of this tracker or one of its ancestors is exceeded.
| 253 | /// Returns true if a valid limit of this tracker or one of its ancestors is |
| 254 | /// exceeded. |
| 255 | bool AnyLimitExceeded(MemLimit mode) { |
| 256 | for (MemTracker* tracker : limit_trackers_) { |
| 257 | if (tracker->LimitExceeded(mode)) return true; |
| 258 | } |
| 259 | return false; |
| 260 | } |
| 261 | |
| 262 | /// If this tracker has a limit, checks the limit and attempts to free up some memory if |
| 263 | /// the hard limit is exceeded by calling any added GC functions. Returns true if the |