Skip to content

Releases: SkyEng1neering/dalloc

1.5.0

11 Jan 15:22

Choose a tag to compare

dalloc v1.5.0

Highlights

  • Thread Safety - optional mutex protection via USE_THREAD_SAFETY (FreeRTOS and custom RTOS support)
  • Improved Single Heap API - explicit registration with dalloc_register_heap(), user controls buffer placement
  • 92 Unit Tests - comprehensive test coverage with Google Test

New Features

  • Thread-safe operations with per-heap mutex
  • heap_deinit() for proper resource cleanup
  • Custom config file support (DALLOC_CUSTOM_CONF_FILE)
  • Heap state inspection functions

Bug Fixes

  • Buffer overflow in drealloc()
  • Potential deadlock in error path
  • FILL_FREED_MEMORY_BY_NULLS preprocessor handling

Breaking Changes

Single heap mode now requires explicit registration:
static uint8_t buffer[4096] attribute((aligned(4)));
dalloc_register_heap(buffer, sizeof(buffer)); // Required before use