[Git][ghc/ghc][wip/stack_cloning] 4 commits: Parser regression tests, close #12862 #12446

Sven Tennie gitlab at gitlab.haskell.org
Sun Oct 25 11:51:42 UTC 2020



Sven Tennie pushed to branch wip/stack_cloning at Glasgow Haskell Compiler / GHC


Commits:
e2c4a947 by Vladislav Zavialov at 2020-10-21T16:00:30+03:00
Parser regression tests, close #12862 #12446

These issues were fixed by earlier parser changes, most likely related
to whitespace-sensitive parsing.

- - - - -
711929e6 by Simon Peyton Jones at 2020-10-23T02:42:59-04:00
Fix error message location in tcCheckPatSynDecl

Ticket #18856 showed that we were failing to set the right location
for an error message.  Easy to fix, happily.

Turns out that this also improves the error location in test T11010,
which was bogus before but we had never noticed.

- - - - -
730bb590 by Ben Gamari at 2020-10-23T02:43:33-04:00
cmm: Add Note reference to ForeignHint
- - - - -
d1da7d7d by Sven Tennie at 2020-10-25T12:48:17+01:00
Add cloneThreadStack, cloneMyStack and printStack (#18741)

These functions clone the stack of either another thread (cloneThreadStack) or
the currently active one (cloneMyStack). printStack prints a cloned stack.

A cloned stack is offline/cold, i.e. it isn't evaluated any further.

The stack is represented by a new primtype (StackSnapshot#) in Haskell.

For technical details, please see note [Stack Cloning].

- - - - -


30 changed files:

- compiler/GHC/Builtin/Names.hs
- compiler/GHC/Builtin/Types/Prim.hs
- compiler/GHC/Builtin/primops.txt.pp
- compiler/GHC/Cmm/Type.hs
- compiler/GHC/StgToCmm/Prim.hs
- compiler/GHC/Tc/TyCl/PatSyn.hs
- + includes/rts/PrinterAPI.h
- includes/rts/storage/Closures.h
- includes/stg/MiscClosures.h
- libraries/base/GHC/Conc/Sync.hs
- + libraries/base/GHC/Stack/CloneStack.hs
- libraries/base/base.cabal
- + rts/CloneStack.c
- + rts/CloneStack.h
- rts/Disassembler.c
- rts/Disassembler.h
- rts/Messages.c
- rts/PrimOps.cmm
- rts/Printer.c
- rts/Printer.h
- rts/RtsSymbols.c
- rts/StgMiscClosures.cmm
- rts/package.conf.in
- rts/rts.cabal.in
- + testsuite/tests/parser/should_compile/T12862.hs
- testsuite/tests/parser/should_compile/all.T
- + testsuite/tests/parser/should_fail/T12446.hs
- + testsuite/tests/parser/should_fail/T12446.stderr
- testsuite/tests/parser/should_fail/all.T
- testsuite/tests/patsyn/should_fail/T11010.stderr


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1b4a4ba9a7ba95acc2beb8d9c6ce7554eba3416f...d1da7d7da23b62719346cf79695664de694cb8b3

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1b4a4ba9a7ba95acc2beb8d9c6ce7554eba3416f...d1da7d7da23b62719346cf79695664de694cb8b3
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201025/aa92b56e/attachment.html>


More information about the ghc-commits mailing list