DynamoRIO / DynamoRIO/drmemory

for pattern mode, want a malloc implementation with no headers

Open
#879 4 comments 0 reactions 0 assignees View on GitHub
Component-LightMode Migrated Performance Priority-Medium Type-Feature
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on April 29, 2012 12:08:53_

split from issue #794 the natural malloc replacement when using shadow memory places its header
in the redzone itself. this negatively affects pattern mode, however.

what pattern mode wants is a malloc implementation that uses no headers
whatsoever and uses a hashtable to store per-chunk data.
note that tcmalloc-type tricks don't really help b/c we need per-chunk
data like callstack and alloc type and not just size.
also note that a hashtable provides guaranteed invalid free detection,
which headers do not.

could go even further and chain frees in hashtable to have entire free
chunk filled w/ pattern

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=879_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.