Skip to content

Conversation

@davidbeckingsale
Copy link
Member

No description provided.

davidbeckingsale and others added 21 commits March 31, 2025 14:22
…r safety

- Update reallocate dispatch to avoid platform-specific std::realloc
- Fix memory safety issues in ResourceManager's reallocate implementations
- Clean up asynchronous operation handling
- Add safety checks to prevent reallocation of offset pointers

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Rename generic_reallocate to reallocate and use this implementation for all platforms
- Fix missing return statements and pointer update issue in reallocate implementation
- Remove platform-specific reallocate implementations to prevent unsafe std::realloc usage
- Add safety mechanism to update pointers in the caller context
- Fix argument consistency in async and typed versions
- Improve documentation and error handling

This ensures that all memory pools and allocators can safely reallocate memory
using the allocate-copy-free pattern rather than platform-specific implementations
which could fail with pooled memory.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…MP Target

- Replace SYCL and OpenMP Target platform-specific reallocate implementations with comments
- Ensure consistent use of the generic allocate-copy-free pattern for all platforms
- Fix argument signature to match the updated reallocate implementation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

2 participants