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

GASMAN and kernel tweaks #2067

Merged
merged 9 commits into from
Jan 9, 2018
Merged

GASMAN and kernel tweaks #2067

merged 9 commits into from
Jan 9, 2018

Conversation

fingolfin
Copy link
Member

While looking into issue #1479 and the memory corruption in GASMAN, I enabled and enhanced various debug options, corrected comments, turned macros into functions etc. The resulting cleanup work is in this PR.

This already revealed a bug in the IO package (where a function cookie was incorrectly used twice).

@fingolfin fingolfin added topic: kernel release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Jan 4, 2018
@codecov
Copy link

codecov bot commented Jan 5, 2018

Codecov Report

Merging #2067 into master will decrease coverage by 12.91%.
The diff coverage is 72.66%.

@@             Coverage Diff             @@
##           master    #2067       +/-   ##
===========================================
- Coverage   67.03%   54.12%   -12.92%     
===========================================
  Files         899      425      -474     
  Lines      273551   225018    -48533     
===========================================
- Hits       183380   121785    -61595     
- Misses      90171   103233    +13062
Impacted Files Coverage Δ
src/calls.h 94.59% <ø> (-5.41%) ⬇️
src/system.h 0% <ø> (-16.67%) ⬇️
src/saveload.c 2.74% <0%> (-59.07%) ⬇️
src/integer.c 88.94% <0%> (-1.37%) ⬇️
src/funcs.c 94.23% <100%> (+15.43%) ⬆️
src/gasman.h 91.66% <100%> (-5%) ⬇️
src/listfunc.c 72.03% <100%> (-8.59%) ⬇️
src/permutat.c 68.63% <50%> (-11.26%) ⬇️
src/gasman.c 67.93% <74.35%> (-20.42%) ⬇️
src/calls.c 45.66% <75%> (-9.63%) ⬇️
... and 788 more

@fingolfin fingolfin force-pushed the mh/gasman branch 2 times, most recently from 4b59e51 to 43a61ec Compare January 8, 2018 17:20
These checks, formerly controlled by

 * CHECK_FOR_CLASH_IN_INIT_SWEEP_FUNC,
 * DEBUG_HANDLER_REGISTRATION,
 * DEBUG_GLOBAL_BAGS,
 * DEBUG_LOADING,

are cheap one-time costs, so there is no reason not to always activate them.
Previously, by hiding them behind compile time flags, they were effectively
never used by anybody.
This way, those debug outputs become much easier to enable (just pass
`-D` to gap) and thus more helpful in practice.
@fingolfin fingolfin merged commit 561c573 into gap-system:master Jan 9, 2018
@fingolfin fingolfin deleted the mh/gasman branch January 9, 2018 14:01
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: kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants