Pretty straightforward, returning the WorkingSetSize of a
PROCESS_MEMORY_COUNTERS structure. AFAIU, GetProcessMemoryInfo is in
kernel32.lib for Windows 7 and above. Support for earlier Windows versions
would require psapi.lib, but I don't think those are supported by ASan?
Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
- Build Status
Buildable 14527 Build 14527: arc lint + arc unit
Event Timeline
Comment Actions
They fail if I break GetRSS on Linux.
I didn't check if anything else is missing on windows to support soft_rss_limit_mb=
Comment Actions
Currently Windows doesn't have a background thread that is needed for the RSS check (launched by MaybeStartBackgroundThread).
GetRSS here is implemented for Scudo support. The larger current WIP CL is at https://reviews.llvm.org/D42519, which includes the RSS test support (but it needs a lot of other stuff to land).
Scudo uses a per deallocation check as opposed to a background thread to not have to start a new thread.