Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Incorrect masks used in mi_bitmap_is_claimedx_across

Open Beginner friendly
#368 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
c
Domain
backend

Research direction

Locate mi_bitmap_is_claimedx_across and compare its mask checks with the preceding bitmap functions. Verify that middle fields are compared with mid_mask and the post field with post_mask; done means the correction is validated by the repository's relevant tests.

Written by the indexing model from the issue text.

Description

In mi_bitmap_is_claimedx_across, the middle fields and the post field all compare the field contents against pre_mask. Compared to the preceding functions, it looks like these should be using mid_mask and post_mask, respectively.

I can’t say if this has caused any issues; I've just been reading the code to understand how the atomic operations work.

Dominant language
C
Stars
13.4k
Forks
1.2k
Avg merge
4d 45m
Merged PRs (30d)
13

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/mimalloc

All issues in microsoft/mimalloc

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.