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
  • !2593

i#2575 shrink thread mem: shrink and parameterize pending signals

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i2575-shrink-signal-heap into master Aug 04, 2017
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 8

Adds a new option -max_pending_signals. Changes the special heap used for pending signals to take in an initial unit size and not be dependent on the regular heap's default unit sizes. The pending signal heap size is sized to fit -max_pending_signals entries. The default is 8, which rounds up to 12K for x86_64, saving per-thread memory over the prior 32K size.

Adds a pending signal count and warns (in release build too) when the maximum is reached.

Adds a check for getting close to the limit when delivering a pending signal: if so, we proactively allocate a 2nd unit while we can safely acquire locks.

Adds a test of "-max_pending_signals 1" for linux.sig* to the long suite.

Issue: #2575 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i2575-shrink-signal-heap