oneapi-src / unified-memory-framework

A library for constructing allocators and memory pools. It also contains broadly useful abstractions and utilities for memory management. UMF allows users to manage multiple memory pools characterized by different attributes, allowing certain allocation types to be isolated from others and allocated using different hardware resources as required.
https://oneapi-src.github.io/unified-memory-framework/
Other
42 stars 29 forks source link

Race Condition Between Thread Destructor and Pool Destroy in Scalable Pool #933

Open lplewa opened 2 days ago

lplewa commented 2 days ago

A race condition occurs when the scalable pool is destroyed while another thread is performing Thread-Local Storage (TLS) destruction. This issue arises only if one thread is in its TLS destructor and another thread calls umfPoolDestroy. There is no problem when a thread is destructed after the pool has been destroyed.

vinser52 commented 2 days ago

Do you have a reproducer?