intel / fpga-runtime-for-opencl

Intel® FPGA Runtime for OpenCL™ Software Technology
Other
34 stars 68 forks source link

Fix USM mem blocking free corruption #360

Closed sophimao closed 6 months ago

sophimao commented 6 months ago

If the event being waited on is completed and deleted during the traversal of command_queue->{commands|inorder_commands}, this would lead to corruption of the corresponding data structure. This change fixes this issue by deferring the deletion till the end of the current iteration.

sophimao commented 6 months ago

Similar issue as #322