snmalloc icon indicating copy to clipboard operation
snmalloc copied to clipboard

Message passing based allocator

Results 86 snmalloc issues
Sort by recently updated
recently updated
newest added

From [backend_helpers/range_helpers.h](https://github.com/microsoft/snmalloc/blob/ddc5703cc87e092a2cbdf23d779eec1eb16991a3/src/snmalloc/backend_helpers/range_helpers.h) ```c++ template void range_to_pow_2_blocks(CapPtr base, size_t length, F f) { auto end = pointer_offset(base, length); base = pointer_align_up(base, bits::one_at_bit(MIN_BITS)); end = pointer_align_down(end, bits::one_at_bit(MIN_BITS)); length = pointer_diff(base, end); bool...

repro needed

This uses the PAGESIZE constant from the unistd.h on POSIX. This should make the code more resilient to being compiled on platforms with different page sizes.

``` 30/87 Test #30: perf-contention-check ............... Passed 0.90 sec Start 31: perf-external_pointer-check 31/87 Test #31: perf-external_pointer-check .........***Exception: SegFault 0.28 sec Start 32: perf-low_memory-check 32/87 Test #32: perf-low_memory-check ............... Passed 0.00...

I know the build is actually free of STL linkage. However, snmalloc is not freestanding buildable because of the following: https://github.com/microsoft/snmalloc/blob/6af38acd94d401313b7237bb7c2df5e662e135cf/src/snmalloc/ds_core/redblacktree.h#L6 Could we include the `` header conditionally?

See https://github.com/SchrodingerZhu/ReuseIR/actions/runs/10536186246/job/29196068023 ``` --- stderr In file included from /home/schrodinger/ReuseIR/reuse-runtime/src/allocator.cpp:1: In file included from /home/schrodinger/ReuseIR/target/release/build/reuse-runtime-9fde60c52cd128ae/out/build/_deps/snmalloc-src/src/snmalloc/snmalloc.h:4: In file included from /home/schrodinger/ReuseIR/target/release/build/reuse-runtime-9fde60c52cd128ae/out/build/_deps/snmalloc-src/src/snmalloc/snmalloc_core.h:3: In file included from /home/schrodinger/ReuseIR/target/release/build/reuse-runtime-9fde60c52cd128ae/out/build/_deps/snmalloc-src/src/snmalloc/backend_helpers/backend_helpers.h:1: In file included from /home/schrodinger/ReuseIR/target/release/build/reuse-runtime-9fde60c52cd128ae/out/build/_deps/snmalloc-src/src/snmalloc/backend_helpers/../mem/mem.h:3:...

Also fixing the build with PAL::posix assuming the intent is to avoid using std namespace for max but rather using the in-house implementation.

Now BatchIt has landed in snmalloc, we should set up a release. I think it would be beneficial to have a few Markdown files explaining new features in this release....

Continuation of: https://github.com/microsoft/snmalloc/pull/771. I made a new PR since it was a somewhat different concept from the original. This seems to be a more correct way to cleanup at the...

Use existing bazel tools to generate rust bindings for bazel users