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

ensure short callbacks get around to a garbage collection #763

Merged
merged 1 commit into from
Nov 28, 2023

Commits on Nov 22, 2023

  1. ensure short callbacks get around to a garbage collection

    If foreign code invaokes a short callback while also allocating (e.g.,
    because it's invoking the callback in a new thread), then memory could
    increase indefinitely without a garbage collection triggered. Avoid
    that situation by making sure that a callback includes a trap check.
    Also, detect on thread creation whether a collection is pending, and
    setting the thread's trap value to minimum in that case.
    
    Meanwhile, "foreign4.c" as part of the test suite wasn't checking
    threading as intended on some platforms (such as macOS), and that's
    fixed in this commit.
    mflatt committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    59913f2 View commit details
    Browse the repository at this point in the history