Fix: harden ring heap boundary checks and add allocator diagnostics#544
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces logging for allocation events in the PTO2TaskAllocator and modifies the allocation boundary condition in both a2a3 and a5 runtimes. It also removes a heap configuration from a test file. The review feedback identifies that the added LOG_INFO statements in the allocation failure paths will cause significant performance degradation and log spam because they are executed within a spin loop. It is recommended to remove these logs as diagnostic information is already captured by existing deadlock reporting mechanisms.
Disallow full-gap allocation when `tail - top == alloc_size` to preserve unambiguous top/tail semantics, and add targeted allocator logs for wrap-around and allocation-failure paths to simplify field debugging. Made-with: Cursor
Ring Buffer Heap Fix: Resolve Ambiguity of
|
…544) Disallow full-gap allocation when `tail - top == alloc_size` to preserve unambiguous top/tail semantics, and add targeted allocator logs for wrap-around and allocation-failure paths to simplify field debugging. Made-with: Cursor
Disallow full-gap allocation when
tail - top == alloc_sizeto preserve unambiguous top/tail semantics, and add targeted allocator logs for wrap-around and allocation-failure paths to simplify field debugging.