Skip to content

Fix: Use UINTPTR_MAX instead of platform names - #3

Merged
hasumikin merged 1 commit into
masterfrom
fix/platform_64bit
Aug 25, 2026
Merged

hasumikin merged 1 commit into
masterfrom
fix/platform_64bit

Conversation

@hasumikin

Copy link
Copy Markdown
Member
  • estalloc.h: Define PLATFORM_64BIT by UINTPTR_MAX
  • estalloc.c: Align block boundary by POOL_HEADER_SIZE, not sizeof(MEMORY_POOL)
  • estalloc.c: Introduce ESTALLOC_STATIC_ASSERT, which won't disappear by NDEBUG, to ensure layout validity
  • Makefile and GHA: Add arb64_32 to test matrix
  • test.c: test_pool_layout() to test alignment, boundary-safeness, pool-stavation, and est_sanity_chech()

fix #2

- estalloc.h: Define `PLATFORM_64BIT` by `UINTPTR_MAX`
- estalloc.c: Align block boundary by POOL_HEADER_SIZE, not sizeof(MEMORY_POOL)
- estalloc.c: Introduce ESTALLOC_STATIC_ASSERT, which won't disappear by NDEBUG, to ensure layout validity
- Makefile and GHA: Add arb64_32 to test matrix
- test.c: `test_pool_layout()` to test alignment, boundary-safeness, pool-stavation, and `est_sanity_chech()`

fix #2
@hasumikin
hasumikin requested a lite review from Copilot August 25, 2026 01:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@hasumikin
hasumikin merged commit b0fd1ef into master Aug 25, 2026
17 checks passed
@hasumikin
hasumikin deleted the fix/platform_64bit branch August 25, 2026 01:34
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.

Crash on watchOS device builds (arm64_32)

2 participants