Closed DaoWen closed 8 years ago
This issue is fixed for the "core" async code in f8240f0b5070051939e04142bb0df8cbb0f5b25b, but there are probably still issues with the "extension" async support (CUDA and UPC++).
I also added the above program as a new C++ test in dc58a3ab9e1f291e153e8d4c11c5d8c170336718.
This issue should be automatically closed when those commits are merged into master. We can open a separate issue for the CUDA / UPC++ asyncs we haven't resolved the issue before merging the above changes.
Using
memcpy
to clone C++ objects that are not trivially copyable can cause serious problems.We're currently using
memcpy
to clone lambdas forasync
(see inc/hclib-async.h:124).Here's a simple program demonstrating the problem:
Expected output:
Current output: