Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bitswap): memory leak on BlockPresenceManager #636

Merged
merged 4 commits into from
Jul 26, 2024

Commits on Jul 8, 2024

  1. Fix memory leak on BlockPresenceManager

    Limit BlockPresenceManager map growth be doing the following:
    
    - Use nil map when BlockPresenceManager CID map is empty.
    - Delete peer map when from CID map when peer map is empty.
    - Remove peers from BlockPresenceManager when peers are pruned from session.
    
    This allows GC to free memory when maps in BlockPresenceManager become empty.
    
    Additional improvement: Do not look for lists of keys or peers in empty maps; return early instead.
    
    Fix for issue #574
    gammazero committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    97a9a8f View commit details
    Browse the repository at this point in the history
  2. update changelog

    gammazero committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    5b63723 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    c94c23a View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. Configuration menu
    Copy the full SHA
    ad3c7c3 View commit details
    Browse the repository at this point in the history