Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…3865) ### Rationale for this change Converting cgo.Handle to unsafe.Pointer is not allowed as per the docs. Doing so appears to cause occasional panics at runtime, possibly because something corrupts or collects the handle unexpectedly. ### What changes are included in this PR? Heap-allocate the Handle to preserve it. ### Are these changes tested? We were unable to reproduce this outside of an integration test. ### Are there any user-facing changes? No user-facing changes. * Closes: #33864 Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
- Loading branch information
Showing
3 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters