This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve GValues from GC (fixes #581)
As a consequence of the forced specialization on the `RT` argument of `signal_emit` in #552, the compiler now knows whether `RT === Nothing`. In that case, it also knows that `return_value` will not be used, so it is free to be garbage-collected. When that happens, it triggers segfaults. This puts both potential `GValue`-arguments inside a `GC.@preserve` to prevent garbage collection. Fixes #581.
- Loading branch information