Allocation and async code

⚓ rust    📅 2025-07-04    👤 surdeus    👁️ 3      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Allocation and async code

I have no real reason beyond my curiosity about this. We are allowed to allocate and free memory in async code which can ultimately result in a system call. What guarantees does the allocator have to provide? Is it possible for an allocation or deallocation to indefinitely block a thread (and all the tasks waiting on it)?

2 posts - 2 participants

Read full topic

🏷️ rust_feed