Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C chashmap
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-os
  • chashmap
  • Merge requests
  • !6

Open
Created Mar 25, 2020 by Alex Hornby@ahornbyContributor
  • Report abuse
Report abuse

Fix panic after remove()

  • Overview 1
  • Commits 2
  • Changes 2

Fix panic after remove raised in #9

Reproduced issue by adding new tests, checked they failed

The underlying problem was lookup() and lookup_mut()'s handling of removed buckets, but lookup_or_free() did the right thing.

With the test in place fixes were:

  1. Generalized the old lookup_or_free to cover all lookup cases by parameterizing the lock->guard function.

  2. Delete dead code no longer needed due to above

Tested using cargo test:

test result: ok. 34 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix_remove