Skip to content

0.7.2

Latest

Choose a tag to compare

@mjp41 mjp41 released this 05 Aug 10:30
· 2 commits to main since this release
3385660

What's Changed

Secondary Allocator

Thanks to @SchrodingerZhu for allowing snmalloc to support a secondary allocator, such as GWP-Asan.
This feature allows snmalloc to pass some allocation and their corresponding deallocation to another allocator.
This can be used for a GWP-Asan integration, and will be used to enable detours on Windows to override the default allocator.

The next major release will build more on this feature.

Platforms

Windows support

Thanks to @NeilMonday for the Windows support improvements in particular the ability to unload snmalloc without leaking the memory associated with snmalloc.

  • Windows: Remove exception handler for pagemap on unloading by @NeilMonday in #746
  • Release all reservations at the very end of the program or DLL by @NeilMonday in #773

Rust

  • [Rust] add support for optionally compiling libc functions by @wpbrown in #763

Libc support

  • Protection against fork by @mjp41 in #735
  • Update realloc(p,0) semantics. by @mjp41 in #753
  • Prevent internal errno setting escaping to the client. by @mjp41 in #754

C++ support

  • Add exception handling for new operator by @mjp41 in #791

CI and build

Bazel

Thanks to @jayakasadev for adding Bazel support to snmallocs build.

Refactor and minor bugs fixes

  • Refactor: Remove unused features and functions, and move most allocator operations to a global namespace. by @mjp41 in #750
  • Bug fixes by @mjp41 in #752
  • Fixed pagemap reservations for a fixed-region use-case using the default PAL by @Trithek in #757
  • Refactor check_bounds by @mjp41 in #756
  • Refactor representation of thread local state. by @mjp41 in #751
  • Fix bug in pool sort by @mjp41 in #765
  • Reentrancy init by @mjp41 in #767
  • Fix CI by @mjp41 in #776
  • Remove tests for experimental jemalloc ABIs by @markjdb in #770
  • Adjust func-memory test to be shorter. by @mjp41 in #780
  • Improve sizeclass calculation by @mjp41 in #777
  • Pass continuations for success and failure cases by @mjp41 in #788
  • Fallible notify using by @mjp41 in #790
  • Code Quality - inlining and reduce PreventFork usage by @mjp41 in #792

New Contributors

Full Changelog: 0.7.1...0.7.2