[GHC] #14970: GHC.Err.errorWithoutStackTrace produces stack trace when profiling enabled
GHC
ghc-devs at haskell.org
Mon Mar 26 05:37:33 UTC 2018
#14970: GHC.Err.errorWithoutStackTrace produces stack trace when profiling enabled
-------------------------------------+-------------------------------------
Reporter: rotaerk | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 8.2.2
Resolution: | Keywords:
Operating System: Linux | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
Indeed I think this is expected. The point (as I understand it) of
`errorWithoutStackTrace` is to avoid the (potential) runtime cost of
`HasCallStack`. In the case of the CCS stack there is no additional cost
to providing the stack-trace.
We probably ought to document this, however.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14970#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list