Skip to content

1.2.0: depend on the Allocator package - #2

Merged
endurodave merged 1 commit into
masterfrom
feature/allocator-dep
Nov 14, 2026
Merged

endurodave merged 1 commit into
masterfrom
feature/allocator-dep

Conversation

@endurodave

Copy link
Copy Markdown
Owner

Summary

  • PlatformIO package: library.json moves to version 1.2.0 and now depends on endurodave/Allocator@^1.1.0 instead of shipping its own Allocator.cpp/.h. Without this, a project that installs both libraries would define Allocator twice and fail to link. The CMake build is unchanged and still uses the repo copy.
  • Allocator.cpp: synced with Allocator PR 1.2.0: depend on the Allocator package #2. GetBlockCount() now counts pool blocks, so xalloc_stats() in STATIC_POOLS mode no longer reports 0 blocks.
  • Docs and CI: the README, the example's platformio.ini and platformio.yml mention the dependency.

Merge order

This PR's PlatformIO CI downloads Allocator from the registry. Allocator (endurodave/Allocator#2) has to be merged and published first; until then the PlatformIO jobs fail with "package not found".

Testing

  • The example builds for Nucleo-F401RE, ESP32, STM32F4 Discovery and Pico against the local Allocator branch.
  • On the Discovery board, the two-task FreeRTOS stress test passed.
  • Packed tarballs of Allocator 1.1.0 and xallocator 1.2.0, plus stl_allocator 1.1.0 from the registry, install together into one project. The stl_allocator demo builds with no duplicate symbols.
  • The Windows MSVC unit tests pass.

🤖 Generated with Claude Code

- library.json: version 1.2.0, depends on endurodave/Allocator ^1.1.0 and
  no longer packages its own Allocator.cpp/.h, so projects installing both
  libraries don't get duplicate Allocator definitions.
- Allocator.cpp synced with Allocator: GetBlockCount() counts pool blocks
  (xalloc_stats with STATIC_POOLS showed 0 blocks).
- Example, README and CI note the Allocator dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@endurodave
endurodave merged commit 0a92f94 into master Nov 14, 2026
13 of 19 checks passed
@endurodave
endurodave deleted the feature/allocator-dep branch November 15, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant