Login
You're viewing the code4lib.social public feed.
  • Jan 29, 2026, 8:10 PM

    Is there a name for the pattern where occupancy of a region containing variable-size but coarse-granularity allocations is represented by a pair of bitmaps, an "allocation bitmap" and a "deallocation bitmap", each one monotonic (i.e., bits are only set, never cleared), each set bit denoting the end of an allocation (with the first allocation implicitly beginning at the first index), and the two bitmaps are XORed to generate the logical occupancy bitmap? I found this pattern really useful for lock-free allocation (single thread-local allocator, multiple deallocators due to cooperative concurrent GC), but not sure if it's folklore (it took me a few showers to come up with it a few years ago).

    💬 1🔄 2⭐ 0

Replies