Skip to content
New issue

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

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

Already on GitHub? # to your account

Implement new StableApiDefinition GC methods #447

Open
ianks opened this issue Nov 21, 2024 · 0 comments
Open

Implement new StableApiDefinition GC methods #447

ianks opened this issue Nov 21, 2024 · 0 comments
Labels

Comments

@ianks
Copy link
Collaborator

ianks commented Nov 21, 2024

In order to support Truffleruby on magnus, we need to support GC operations, which currently relies on cruby internals.

/// Informs that there are external memory usages, so the GC can run more
/// often than it otherwise would if it was unaware of such allocations.
fn gc_adjust_memory_usage(&self, incr: isize);

/// Informs the GC that `young` is a new reference to `old`, allowing the
/// the old object to participate in generational GC.
fn gc_writebarrier(&self, old: VALUE, young: VALUE);

/// Opts out of generational GC and write barrier protection.
fn gc_writebarrier_unprotect(&self, obj: VALUE);
@ianks ianks added this to the Full Truffleruby Support milestone Nov 21, 2024
@ianks ianks changed the title Implement new StableApi GC methods Implement new StableApiDefinition GC methods Nov 21, 2024
@ianks ianks added the help wanted Extra attention is needed label Nov 21, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant