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

Add configure option to select GC; introduce USE_GASMAN macro #2299

Merged
merged 2 commits into from
Mar 25, 2018

Conversation

fingolfin
Copy link
Member

Also rename BOEHM_GC to USE_BOEHM_GC, for uniformity. Also change the code to use USE_GASMAN and USE_BOEHM_GC more consistently; e.g. don't assume that HPC-GAP uses Boehm and non-HPC-GAP uses GASMAN.

This is part of #2092 (I wrote this code for @rbehrends but since that work currently doesn't seem to go anywhere, I think it's best to merge this now, instead of letting it bitrot).

Resolves #1470

Right now, this is not very useful, as one essentially can only
select GASMAN for GAP and Boehm GC for HPC-GAP.

However, in the future Boehm GC may become selectable for GAP,
and other garbage collectors may become available.
This gives us finer control over which feature to enable for which memory
manager, which will make it easier to potentially use Boehm GC in GAP, or
other GCs in either GAP or HPC-GAP.
@fingolfin fingolfin added topic: build system topic: kernel release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Mar 25, 2018
@ChrisJefferson
Copy link
Contributor

This looks reasonable. I haven't checked the resulting GAP (boehm in non-HPC GAP) works.

@fingolfin
Copy link
Member Author

Actually, right now this does not allow selecting Boehm GC in plain GAP ! It just lays the ground work for that -- I have not attempted to even compile GAP in that mode so far.

@codecov
Copy link

codecov bot commented Mar 25, 2018

Codecov Report

Merging #2299 into master will increase coverage by 0.06%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master    #2299      +/-   ##
==========================================
+ Coverage   71.81%   71.88%   +0.06%     
==========================================
  Files         479      479              
  Lines      251663   252258     +595     
==========================================
+ Hits       180729   181326     +597     
+ Misses      70934    70932       -2
Impacted Files Coverage Δ
src/hpc/threadapi.c 37.42% <ø> (ø) ⬆️
src/boehm_gc.c 92.63% <ø> (ø) ⬆️
src/weakptr.c 95.11% <ø> (ø) ⬆️
src/rational.c 96.82% <ø> (ø) ⬆️
src/hpc/thread.c 55.7% <ø> (ø) ⬆️
src/gasman.h 90% <ø> (ø) ⬆️
src/gapstate.h 71.42% <ø> (ø) ⬆️
src/saveload.c 64.59% <0%> (ø) ⬆️
src/gap.c 63.24% <100%> (ø) ⬆️
src/vec8bit.c 78.54% <0%> (+0.03%) ⬆️
... and 7 more

@fingolfin fingolfin merged commit 66b4eac into gap-system:master Mar 25, 2018
@fingolfin fingolfin deleted the mh/gc3 branch March 25, 2018 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: build system topic: kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants