1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/test_ffi
Aapo Alasuutari 3be5381060
fix(test_ffi): thread_safe_callback is flaky (#19640)
Attempts to fix the thread_safe_callback flakiness. It's unclear what
the flake is about, the exit code is apparently `C0000005` or
`ACCESS_VIOLATION`, pointing to an issue with memory access. My only
guess is that maybe dropping the `Option<extern "C" fn ()>` is somehow
checking the validity of the function pointer and since the function has
been dropped, the pointer is no longer valid and sometimes points to
memory that should not be accessed.

So now the will explicitly drop the functions before they get
deallocated. If this doesn't fix the flake then something beyond my
understanding is wrong.
2023-06-28 14:41:59 -06:00
..
src chore: fix typos (#19572) 2023-06-26 09:10:27 -04:00
tests fix(test_ffi): thread_safe_callback is flaky (#19640) 2023-06-28 14:41:59 -06:00
Cargo.toml chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
README.md feat: ffi to replace plugins (#11152) 2021-08-06 23:28:10 +02:00

test_ffi crate