Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !4063

i#3316: Use libc malloc+free for static DR in standalone mode

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i3316-standalone-malloc into master 5 years ago
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

Adds a check for standalone_library when STATIC_LIBRARY is defined inside the global heap routines. For static DR in standalone mode, libc malloc and free are used instead of DR's allocator, for two reasons: better multi-threaded performance and better interoperability with tools like sanitizers.

Only global alloc needs this because standalone mode never creates thread contexts. This is limited to static DR because we can use a direct call and avoid pulling in libc dependencies into shared-library DR, which will not work. Most standalone uses should prefer static DR in any case.

Fixes #3316 (closed)

Compare
  • master (base)

and
  • latest version
    fa562bef
    1 commit, 2 years ago

0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: firstcontributions/first-contributions!56555
Source branch: i3316-standalone-malloc

Menu

Explore Projects Groups Snippets