Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gjs gjs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 107
    • Issues 107
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & 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
  • GNOME
  • gjsgjs
  • Merge requests
  • !114

Queue a GC when a toggle reference goes from >1 to 1

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Georges Basile Stavracas Neto requested to merge gbsneto/aggressive-gc into master Mar 31, 2018
  • Overview 20
  • Commits 2
  • Pipelines 7
  • Changes 3

This is my hacky approach to the problem. This runs the GC much less than expected but more than what would be acceptable (@chergert's idea make it runs much less than my original approach). But it definitely holds the GNOME Shell memory at the same plateu for a long, long time, helping gnome-shell#64 (closed) not happen.

Some ideas that are worth considering:

  • Use a timeout instead of an idle add (it appearently didn't have the same effectiveness though...)
  • Don't force GC but instead improve the current heuristics
  • What else?

Issue: #140 (closed)

Edited Apr 13, 2018 by Georges Basile Stavracas Neto
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: gbsneto/aggressive-gc