Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Conversation

@alexstoick
Copy link
Contributor

This interacts weirdly with the GoGC and the Go control mechanism, as
this pushes the return value of a Go function to a C object. This
trips up the Go Gargabe collector.

I have not removed all usages of rb_raise for now, just in this
Fetch method, renamed it to _fetch and wrapped it in a fetch
method and doing the exception raising from the Ruby code.

This interacts weirdly with the GoGC and the Go control mechanism, as
this pushes the return value of a _Go_ function to a _C_ object. This
trips up the Go Gargabe collector.

I have **not** removed all usages of `rb_raise` for now, just in this
`Fetch` method, renamed it to `_fetch` and wrapped it in a `fetch`
method and doing the exception raising from the Ruby code.
@alexstoick alexstoick marked this pull request as ready for review June 6, 2023 19:14
@alexstoick alexstoick merged commit ad1f255 into master Jun 6, 2023
@alexstoick alexstoick deleted the fix/do-not-use-rbraise branch June 6, 2023 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants