Skip to content
GitLab
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 Jan 28, 2020
  • 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)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i3316-standalone-malloc