Skip to content

Avoid abort() when FiberError occurs in mrb_fiber_resume()#5857

Merged
matz merged 1 commit into
mruby:masterfrom
dearblue:avoid-abort-resume
Nov 20, 2022
Merged

Avoid abort() when FiberError occurs in mrb_fiber_resume()#5857
matz merged 1 commit into
mruby:masterfrom
dearblue:avoid-abort-resume

Conversation

@dearblue

@dearblue dearblue commented Nov 19, 2022

Copy link
Copy Markdown
Contributor

However, this may not be the case depending on where the FiberError raises.

@dearblue dearblue requested a review from matz as a code owner November 19, 2022 02:11
Comment thread mrbgems/mruby-fiber/src/fiber.c Outdated
}

static mrb_value
fiber_error_static(mrb_state *mrb, const char *mesg)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I, as an insider, can imagine this _static means "calls mrb_str_new_static() inside", but I think it's too much to expect for others. Probably we should remove _static and add a comment that "mesg should be a literal string" or something similar.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐈‍⬛ Surely, three months from now I will be doing something.
I will fix it.

However, this may not be the case depending on where the `FiberError` raises.
@dearblue dearblue changed the title Avoid abort() when exception occurs in mrb_fiber_resume() Avoid abort() when FiberError occurs in mrb_fiber_resume() Nov 20, 2022
@matz matz merged commit 3a0e225 into mruby:master Nov 20, 2022
@dearblue dearblue deleted the avoid-abort-resume branch December 25, 2022 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants