Commits on Source (3)
-
This fixes several small oversights in the choice of pretty-printing function to use. Fixes #18052.
22cc8e51 -
We've had this longstanding issue in the heap profiler, where the time of the last sample in the profile is sometimes way off causing the rendered graph to be quite useless for long runs. It seems to me the problem is that we use mut_user_time() for the last sample as opposed to getRTSStats(), which we use when calling heapProfile() in GC.c. The former is equivalent to getProcessCPUTime() but the latter does some additional stuff: getProcessCPUTime() - end_init_cpu - stats.gc_cpu_ns - stats.nonmoving_gc_cpu_ns So to fix this just use getRTSStats() in both places.
ec77b2f1 -
Simon Peyton Jones authored
I omitted a vital zonk when refactoring tcHsPartialType in commit 48fb3482 Author: Simon Peyton Jones <simonpj@microsoft.com> Date: Wed Jun 5 08:55:17 2019 +0100 Fix typechecking of partial type signatures This patch fixes it and adds commentary to explain why. Fixes #18008
658bda51
Showing
- compiler/GHC/Core/Ppr.hs 9 additions, 5 deletionscompiler/GHC/Core/Ppr.hs
- compiler/GHC/Tc/Gen/HsType.hs 81 additions, 14 deletionscompiler/GHC/Tc/Gen/HsType.hs
- compiler/GHC/Tc/Module.hs 4 additions, 4 deletionscompiler/GHC/Tc/Module.hs
- rts/ProfHeap.c 4 additions, 3 deletionsrts/ProfHeap.c
- testsuite/tests/ghci/should_fail/T18052b.script 2 additions, 0 deletionstestsuite/tests/ghci/should_fail/T18052b.script
- testsuite/tests/ghci/should_fail/T18052b.stderr 3 additions, 0 deletionstestsuite/tests/ghci/should_fail/T18052b.stderr
- testsuite/tests/ghci/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/ghci/should_fail/all.T
- testsuite/tests/partial-sigs/should_compile/ExtraConstraints3.stderr 25 additions, 25 deletions...ests/partial-sigs/should_compile/ExtraConstraints3.stderr
- testsuite/tests/partial-sigs/should_compile/T18008.hs 7 additions, 0 deletionstestsuite/tests/partial-sigs/should_compile/T18008.hs
- testsuite/tests/partial-sigs/should_compile/T18008.stderr 5 additions, 0 deletionstestsuite/tests/partial-sigs/should_compile/T18008.stderr
- testsuite/tests/partial-sigs/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/partial-sigs/should_compile/all.T
- testsuite/tests/printer/T18052a.hs 8 additions, 0 deletionstestsuite/tests/printer/T18052a.hs
- testsuite/tests/printer/T18052a.stderr 42 additions, 0 deletionstestsuite/tests/printer/T18052a.stderr
- testsuite/tests/printer/all.T 2 additions, 0 deletionstestsuite/tests/printer/all.T
testsuite/tests/printer/T18052a.hs
0 → 100644
testsuite/tests/printer/T18052a.stderr
0 → 100644