Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from ruby:master #448

Merged
merged 5 commits into from
Dec 10, 2024
Merged

[pull] master from ruby:master #448

merged 5 commits into from
Dec 10, 2024

Conversation

pull[bot]
Copy link

@pull pull bot commented Dec 10, 2024

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

XrXr and others added 5 commits December 9, 2024 16:08
We observed crashes from rb_io_bufwrite() thread switching (through
rb_thread_check_ints()) in the middle of rb_execution_context_mark(). By
the time rb_execution_context_mark() gets a timeslice again, it read
garbage from a frame that was already popped in another thread, crashing
the process in SEGV. Other mark functions probably have their own ways
of breaking, but clearly, the usual IO code do too much for this
perilous pseudo GC context.

Use `FILE*` like before 5001cc4
("Optimize ObjectSpace.dump_all"). Also, add type checking for
the private _dump methods.

Co-authored-by: Peter Zhu <[email protected]>
Check for nil like other callers of rb_fiber_scheduler_current().
We build in the gc directory since commit d057503,
so we don't need to remove the .gc directory.
If building in the source directory, this will delete the gc directory.
We should run `make clean` or `make distclean` on each of the GC directories.
@pull pull bot added the ⤵️ pull label Dec 10, 2024
@pull pull bot merged commit cfc2b21 into wapm-packages:master Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants