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

Boehm cleanup #1664

Merged
merged 9 commits into from
Jan 31, 2025
Merged

Boehm cleanup #1664

merged 9 commits into from
Jan 31, 2025

Conversation

Bike
Copy link
Member

@Bike Bike commented Jan 31, 2025

Upgrades to boehm gc 8.2.8 and cleans up some old code. More importantly, it enables the use of thread-local allocation, which should make consing more efficient in a multi threaded program.

Bike added 9 commits January 30, 2025 14:10
Some of it I don't understand the logic of. Why would we ever need
to know the size of a forwarding pointer? Even if we did, we could
just follow the pointer and see how big the forwarded object is.
And I don't see any purpose for the OBJECT_SIZE etc in obj_scan,
since we can just set forwarding pointers from the header.
no point being coy about it with stampP, we're doing low level
stuff here and it's cleaner to just have the one switch.
not really used anyway. i kinda want to delete the debug code
entirely but i'll hold off for a moment
it's bitrotten, and also the boehm docs are pretty clear that mark
procedures should only be a last resort if a bitmap isn't adequate.
We're already not using bitmaps in boehm, so why would we want
mark procedures?
Our custom kinds have identical properties to GC_I_NORMAL. So all
making them accomplishes is preventing the system from using
threadlocal freelists (without a bit of internal hacking these
only seem to exist for the builtin kinds, normal and pointerfree)
Why were we forcing global allocations?
not sure how kosher it is to update the autoconf-generated config.h
manually. oh well
the static analyzer no longer analyzes WeakPointer, and as such
there's no reason to restrict the use of a smart pointer.

Ephemerons still need a disguised pointer, unfortunately.
@Bike Bike merged commit a072f7c into main Jan 31, 2025
8 of 9 checks passed
@Bike Bike deleted the boehm-cleanup branch January 31, 2025 23:43
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.

1 participant