-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#4014 dr$sim phys: Avoid malloc in physaddr_t
Switches from std::unordered_map in physaddr_t to a drcontainers hashtable to avoid malloc and make things safe for statically-linked drmemtrace. Similarly, switches from std::ostringstream to dr_snprintf in physaddr_t::init() to avoid malloc. Tested on a multi-threaded app which hits the post-init malloc warning without both fixes (test will be added in a forthcoming PR: it cannot be added now as physaddr_t is not thread-safe yet). Issue: #4014
- Loading branch information
1 parent
504765d
commit 98da90c
Showing
3 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters