summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update containers submodule to v0.6.4.1wip/sjakobi/containers-0.6.4.1Simon Jakobi2021-01-162-1/+1
| | | | | | | v0.6.4.1 includes several important correctness fixes not present in v0.6.2.1. Fixes #19206.
* Natural: fix left shift of 0 (fix #19170)Sylvain Henry2021-01-134-1/+17
| | | | Cherry-picked from: 2754419673eabea772f27e9ad9275ef6acaddae3
* Bump haddock submoduleBen Gamari2021-01-111-0/+0
| | | | Closes #19161.
* base: Add old changelog entriesBen Gamari2021-01-111-0/+5
|
* Add instances for GHC.Tuple.SoloDavid Feuer2021-01-1127-23/+123
| | | | | | | | | | | | | | The `Applicative` instance is the most important one (for array/vector/sequence indexing purposes), but it deserves all the usual ones. T12545 alloc increases 1.0%; Ben Gamari suspects this is just from having more instances around. Metric Increase: T12545 (cherry picked from commit 372a92d831151977944df488ba2770768edc45d9)
* rts/PEi386: Fix reentrant lock usageBen Gamari2021-01-111-1/+1
| | | | | | | | | | | | | | Previously lookupSymbol_PEi386 would call lookupSymbol while holding linker_mutex. Fix this by rather calling `lookupDependentSymbol`. This is safe because lookupSymbol_PEi386 unconditionally holds linker_mutex. Happily, this un-breaks `T12771`, `T13082_good`, and `T14611`, which were previously marked as broken due to #18718. Closes #19155. (cherry picked from commit a7105e53921e715d4d70c7c45ddc79bdc6eebffc)
* testsuite: Add test for #19149Ben Gamari2021-01-114-0/+51
| | | | (cherry picked from commit 61ce4261bb4c21ca5c41fcfc2107a81726cf22c1)
* compiler: Initialize ForeignExportsList.n_entriesBen Gamari2021-01-111-1/+4
| | | | | | | | | | | | The refactoring in ed57c3a9eb9286faa222f98e484a9ef3432b2025 failed to initialize this field, resulting in no exports being registered. A very silly bug and yet somehow none of our tests caught it. See #18548. Fixes #19149. (cherry picked from commit 4cd2674fbf1adb1e1d951dcb65e78eda03732484)
* Bump text submodule to v1.2.4.1Ben Gamari2021-01-112-1/+1
|
* Revert "base: Make `open` calls interruptible"David Feuer2021-01-042-7/+2
| | | | | | | | | | This reverts commit 93c88c266eacd80a7f2a1754778167390c287b18. This change did not accomplish its stated purpose, because (assuming `openFileBlocking` is called with `bracket`), `throwOnMinus1Retry` would just retry the interrupted `c_safe_open` call without first delivering pending exceptions using `allowInterrupt`.
* Maintain invariant: MVars on mut_list are dirtyViktor Dukhovni2021-01-022-0/+3
| | | | | | | | | | | | The fix for 18919 was somewhat incomplete: while the MVars were correctly added to the mut_list via dirty_MVAR(), their info table remained "clean". While this is mostly harmless in non-debug builds, it trips an assertion in the debug build, and may result in the MVar being needlessly being added to the mut_list multiple times. Resolves: #19145
* nonmoving: Add comments to nonmovingResurrectThreadsGHC GitLab CI2020-12-311-0/+5
| | | | (cherry picked from commit 65b702f131a0629a4ff8440754bd1a17f9860e54)
* nonmoving: Don't push objects during deadlock detect GCBen Gamari2020-12-311-2/+6
| | | | | | | | Previously we would push large objects and compact regions to the mark queue during the deadlock detect GC, resulting in failure to detect deadlocks. (cherry picked from commit a2731d49d95f7397a6a267a322ed75b0c3a5c246)
* nonmoving: Refactor alloc_for_copyGHC GitLab CI2020-12-311-48/+79
| | | | | | Pull the cold non-moving allocation path out of alloc_for_copy. (cherry picked from commit a13bd3f147d63968bc50df6f43154bf2a05809df)
* nonmoving: Ensure deadlock detection promotion worksGHC GitLab CI2020-12-311-18/+22
| | | | | | | | Previously the deadlock-detection promotion logic in alloc_for_copy was just plain wrong: it failed to fire when gct->evac_gen_no != oldest_gen->gen_no. The fix is simple: move the (cherry picked from commit cde7499476f66f1369bd55cc046e4bfdb5d4a2a6)
* nonmoving: Assert deadlock-gc promotion invariantGHC GitLab CI2020-12-311-0/+8
| | | | | | | When performing a deadlock-detection GC we must ensure that all objects end up in the non-moving generation. Assert this in scavenge. (cherry picked from commit a5b2fded602ee8110dc75de2ec9910c36980ca24)
* nonmoving: Fix small CPP bugBen Gamari2020-12-311-1/+3
| | | | | | | Previously an incorrect semicolon meant that we would fail to call busy_wait_nop when spinning. (cherry picked from commit 19823708258224266e75b0236719313b9022aba4)
* Bump Cabal submodule to 3.4.0.0-rc6Ben Gamari2020-12-311-0/+0
|
* sdist: Fix source distribution ruleBen Gamari2020-12-281-1/+1
| | | | Missing dollar sign.
* gitlab-ci: Use gtar on FreeBSDghc-9.0.1-rc1wip/keepAlive-ghc-9.0Ben Gamari2020-12-271-2/+4
| | | | (cherry picked from commit 9ff26b5a384e1b9b3f865f71b818a4f960dc356a)
* base: Fix Windows event managerBen Gamari2020-12-271-1/+1
| | | | Fix an earlier rebase mistake.
* Bump bytestring submoduleBen Gamari2020-12-271-0/+0
| | | | Use unsafeWithForeignPtr when possible.
* keepAlive documentationBen Gamari2020-12-274-13/+50
|
* ghc-compact: Use keepAlive# in GHC.Compact.SerializedBen Gamari2020-12-271-10/+2
| | | | (cherry picked from commit de1b380a17ceccb095a5c772846cd5c0215242ac)
* base: Use keepAlive# in Foreign.Marshal.AllocBen Gamari2020-12-271-25/+4
| | | | (cherry picked from commit 5813cdffc6ae5fbd23af9d6f8526373e46f5623c)
* base: Use keepAlive# in withForeignPtrBen Gamari2020-12-273-3/+5
| | | | (cherry picked from commit 33a6b81e41775798ddf65680f10a6dcd4c07b911)
* Introduce keepAlive primopGHC GitLab CI2020-12-274-1/+51
| | | | (cherry picked from commit 10739183ea84364dc54b2ed0c4fc85871c95f3ba)
* genprimopcode: Add a second levity-polymorphic tyvarBen Gamari2020-12-271-0/+3
| | | | | | This will be needed shortly. (cherry picked from commit ef42c578f2c4fa48d9e191592c8442653ee1ea9a)
* StringBuffer: Use unsafeWithForeignPtrBen Gamari2020-12-272-15/+21
| | | | (cherry picked from commit bc926291da3e3caa2c1d9240be6065848d16e8ce)
* Bump bytestring submoduleBen Gamari2020-12-271-0/+0
| | | | | | Teach it to use unsafeWithForeignPtr where appropriate. (cherry picked from commit e0f6293e94c1686da1af55c749b7bf97f9a0410f)
* base: Use unsafeWithForeignPtr in GHC.Event.IntTableBen Gamari2020-12-271-5/+6
| | | | (cherry picked from commit 1d3e18a1fd6075fd30dfc0445126dd7d98e4dd1d)
* base: Use unsafeWithForeignPtr in GHC.IO.BufferBen Gamari2020-12-271-5/+6
| | | | (cherry picked from commit 3d4585fd11f84c8fa5b33fa02469074b187b61cd)
* base: Eliminate allocating withForeignPtrs from GHC.Event.ArrayBen Gamari2020-12-271-15/+17
| | | | (cherry picked from commit bc44a67f8201962de38eb3937bf713fdbb7f4605)
* GHC.Utils.Binary: Eliminate allocating withForeignPtr usesBen Gamari2020-12-271-7/+16
| | | | (cherry picked from commit bc178f49d65ceb8c930d00302b9d25a47ab48692)
* base: Add unsafeWithForeignPtrBen Gamari2020-12-272-26/+38
| | | | (cherry picked from commit eb21e9ea8459fb7e5769397d8322963c9755f3b3)
* mkDocs: address shellcheck issuesAdam Sandberg Ericsson2020-12-231-4/+4
| | | | (cherry picked from commit 50236ed2e628289f6b6954db7b1021c0b03bbb4f)
* mkDocs: fix extraction of Win32 docs from hadrian bindistAdam Sandberg Ericsson2020-12-231-2/+6
| | | | (cherry picked from commit 53fb345d4fb4c06f6f5450b206250eec24578d8b)
* mkDocs: support hadrian bindists #18973Adam Sandberg Ericsson2020-12-171-1/+3
| | | | (cherry picked from commit e033dd0512443140dcca5b3c90b84022d8caf942)
* hadrian: correctly copy the docs dir into the bindist #18669Adam Sandberg Ericsson2020-12-171-1/+9
| | | | (cherry picked from commit c647763954717d9853d08ff04eece7f1ddeae15c)
* Fix bad span calculations of post qualified importsShayne Fletcher2020-12-144-8/+83
| | | | (cherry picked from commit 4a437bc19d2026845948356a932b2cac2417eb12)
* RegAlloc: Add missing raPlatformfield to RegAllocStatsSpillAndreas Klebinger2020-12-142-2/+7
| | | | | | | Fixes #18994 Co-Author: Benjamin Maurer <maurer.benjamin@gmail.com> (cherry picked from commit 3e3555cc9c2a9f5246895f151259fd2a81621f38)
* Bump Cabal submodule to 3.4.0.0-rc5Ben Gamari2020-12-141-0/+0
|
* Backport: Fix for #18955 to GHC 9.0Roland Senn2020-12-088-6/+33
| | | | | | | | | | | | | Since MR !554 (#15454) GHCi automatically enabled the flag `-fobject-code` on any module using the UnboxedTuples or UnboxedSum extensions. MR !1553 (#16876) allowed to inhibit the automatic compiling to object-code of these modules by setting the `fbyte-code` flag. However, it assigned 2 different semantics to this flag and introduced the regression described in issue #18955. This MR fixes this regression by unsetting the internal flag `Opt_ByteCodeIfUnboxed` before it's copied to DynFlags local to the module.
* testsuite: Add missing #include on <stdlib.h>Ben Gamari2020-12-031-0/+1
| | | | | | | This otherwise fails on newer Clangs, which warn more aggressively on undeclared symbols. (cherry picked from commit 3d7db1488c4bd7764e8b1fe3cfde4c5a548cde16)
* Fix cas_intGHC GitLab CI2020-12-011-11/+11
|
* Fix various documentation issuesGHC GitLab CI2020-12-013-0/+7
|
* hadrian: Pass input file to makeindexBen Gamari2020-12-011-1/+1
| | | | | | | | Strangely I find that on Alpine (and apparently only on Alpine) the latex makeindex command expects to be given a filename, lest it reads from stdin. (cherry picked from commit 389a668343c0d4f5fa095112ff98d0da6998e99d)
* rts: Refactor unloading of foreign export StablePtrsBen Gamari2020-12-014-37/+50
| | | | | | | | Previously we would allocate a linked list cell for each foreign export. Now we can avoid this by taking advantage of the fact that they are already broken into groups. (cherry picked from commit 40dc91069d15bfc1d81f1722b39e06cac8fdddd1)
* rts: Refactor foreign export trackingBen Gamari2020-12-019-45/+209
| | | | | | | | | | | This avoids calling `libc` in the initializers which are responsible for registering foreign exports. We believe this should avoid the corruption observed in #18548. See Note [Tracking foreign exports] in rts/ForeignExports.c for an overview of the new scheme. (cherry picked from commit c492134912e5270180881b7345ee86dc32756bdd)
* ThreadPaused: Don't zero slop until free vars are pushedGHC GitLab CI2020-11-302-6/+11
| | | | | | | | | | When threadPaused blackholes a thunk it calls `OVERWRITING_CLOSURE` to zero the slop for the benefit of the sanity checker. Previously this was done *before* pushing the thunk's free variables to the update remembered set. Consequently we would pull zero'd pointers to the update remembered set. (cherry picked from commit 3e75b0dbaca5fbd8abc529d70c1df159f5bfbaa4)