Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 610
    • Issues 610
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 87
    • Merge requests 87
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container 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
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Merge requests
  • !5438

Draft: Use isc_mem_reget() when growing buffer dynamically

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Ondřej Surý requested to merge ondrej/use-isc_mem_reget-as-a-better-fit into 2917-preserve-the-contents-of-tcp-buffer Sep 22, 2021
  • Overview 3
  • Commits 8
  • Pipelines 5
  • Changes 7

Previously, we cannot use isc_mem_reallocate() for growing the buffer dynamically, because the memory was allocated using the isc_mem_get()/isc_mem_put() API. With the introduction of the isc_mem_reget() function, we can use grow/shrink the memory directly without always moving the memory around as the allocator might have reserved some extra space after the initial allocation.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ondrej/use-isc_mem_reget-as-a-better-fit