Move the OOM decision based on RSS limits out of generic allocator to
ASan allocator, where it makes more sense at the moment.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 7222 Build 7222: arc lint + arc unit
Event Timeline
Comment Actions
Yep, other sanitizers need this functionality too, but the current way is pretty ugly (hinted by "bool check_rss_limit = false" parameter). I'd rather have the flag and the callback in sanitizer_allocator.cc, but first I'd like to finish changes addressing allocator_may_return_null issues (in a similar way, trying to move may_return_null_ flag out of the generic allocator) and then revisit RSS limit behavior.
Comment Actions
Nope, not back, but to sanitizer_allocator.cc. Not doing it right now since I want to see how may_return_null_ refactoring will turn out.