-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add GAP_MarkBag
, GAP_CollectBags
, a minimal interface to the garbage collector
#4215
Conversation
…ystem#3030 these are probably the minimal interfaces that need to be exposed, and are compatible with all current GC implementations. As suggested at gap-system#3030 (comment) GAP_CollectBags only takes a <full> argument, but not <size>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but it'd be nice if @ChrisJefferson also had a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took the liberty of applying some tweaks, to make the tests pass and to address some minor nitpicks of mine. Hope that was OK, of course we can still revise!
Still would like a second opinion by @ChrisJefferson . But in general this seems to me to be OK to merge
This is fine to merge with me. I point out the existence of InitGlobalBag, it might be places where you are using MarkBag you could be using InitGlobalBag if you only set some things up once. I wouldn't bother adding a wrapper for it until someone wants it. |
libgap
API: Expose a minimal interface to the garbage collector, via GAP_MarkBag
, GAP_CollectBags
libgap
API: Expose a minimal interface to the garbage collector, via GAP_MarkBag
, GAP_CollectBags
GAP_MarkBag
, GAP_CollectBags
, a minimal interface to the garbage collector
Add libgap interfaces to the garbage collector. As discussed in #3030
these are probably the minimal interfaces that need to be exposed, and
are compatible with all current GC implementations.
As suggested at #3030 (comment)
GAP_CollectBags only takes a
full
argument, but notsize
.Copy-editing may be needed on the documentation the header.