Adds the base runtime library for the working set tool.
Adds slowpath code for updating the shadow memory.
To be added in the future:
+ Scan memory and report the total size.
+ Take samples for intermediate values.
Differential D20485
[esan] Add working set base runtime library bruening on May 20 2016, 1:19 PM. Authored by
Details Adds the base runtime library for the working set tool. To be added in the future:
Diff Detail
Event Timeline
Comment Actions Doing some minor post-commit review. Please don't add svn properties unless they're really needed. Thank you, Filipe
Comment Actions
It was not clear what you were referring to. Looking at it it seems that there are some svn:eol-style properties being auto-added by git-svn. Turning off core.autocrlf should avoid this in the future. Looking around I see a number of existing files with this property (e.g., 7 files in lib/asan/) so this seems like a common problem and should probably be mentioned at http://llvm.org/docs/GettingStarted.html. |
We should just validate Tool at the start of initializeLibrary, and set WhichTool after we validated it. That way we know that WhichTool is either uninitialized or a valid tool. We should also remove the assignment to WhichTool from __esan_init and only do it here, in initializeLibrary (currently we're setting it twice (at least)).