Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P project3035746
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 每天都是星期六
  • project3035746
  • Merge requests
  • !1

[MM] Refcounted pages, anonymous mmap/brk, and copy-on-write fork

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged 每天都是星期六 requested to merge sunky/mm-cow-mmap into main Dec 21, 2025
  • Overview 0
  • Commits 4
  • Pipelines 0
  • Changes 9

This merge request enhances the memory management subsystem with modern virtual memory features:

  • Refactored physical frame allocator with per-page reference counting
  • Added anonymous mmap system call support
  • Improved brk to support dynamic user heap growth
  • Implemented copy-on-write fork by removing write permissions and handling data duplication in the page fault handler
  • Added user-level tests for mmap and COW behavior

These changes enable efficient memory sharing and lazy copying between processes.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: sunky/mm-cow-mmap