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

Avoid GC problem in PowPerm2Int/PowPerm4Int #2320

Merged
merged 1 commit into from
Mar 28, 2018

Conversation

ChrisJefferson
Copy link
Contributor

AInvInt can cause a garbage collection, which moves the memory that ptKnown points to, so calculate the negation first.

AInvInt can cause a garbage collection, which moves the memory that
ptKnown points to.
@ChrisJefferson ChrisJefferson added kind: bug: crash Issues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes) release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes backport-to-4.9 labels Mar 27, 2018
@codecov
Copy link

codecov bot commented Mar 28, 2018

Codecov Report

Merging #2320 into master will increase coverage by 7.74%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2320      +/-   ##
==========================================
+ Coverage   64.59%   72.33%   +7.74%     
==========================================
  Files         478      479       +1     
  Lines      250875   250961      +86     
==========================================
+ Hits       162046   181533   +19487     
+ Misses      88829    69428   -19401
Impacted Files Coverage Δ
src/permutat.c 86.4% <100%> (+3.39%) ⬆️
src/hpc/traverse.c 95.75% <0%> (-0.59%) ⬇️
src/hpc/threadapi.c 37.42% <0%> (ø) ⬆️
lib/teachmod.g 12.94% <0%> (ø)
src/vecgf2.c 71.78% <0%> (+0.05%) ⬆️
src/vec8bit.c 83.25% <0%> (+0.07%) ⬆️
src/intrprtr.c 87.56% <0%> (+0.12%) ⬆️
src/stats.c 87.05% <0%> (+0.13%) ⬆️
grp/classic.gi 84.26% <0%> (+0.16%) ⬆️
src/exprs.c 93.27% <0%> (+0.17%) ⬆️
... and 192 more

@fingolfin fingolfin merged commit 89a3595 into gap-system:master Mar 28, 2018
@fingolfin fingolfin added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Mar 28, 2018
@fingolfin
Copy link
Member

Backported (with minor necessary adjustment) to stable-4.9 as 15ce49d

@ChrisJefferson ChrisJefferson deleted the perm-fix branch March 28, 2018 22:23
@fingolfin fingolfin added the kind: bug Issues describing general bugs, and PRs fixing them label Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug: crash Issues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes) kind: bug Issues describing general bugs, and PRs fixing them release notes: added PRs introducing changes that have since been mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants