
#12492: internal error: allocation of 1048608 bytes too large -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.2 Component: Runtime System | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonmar): Ah, I didn't realise it had custom Cmm. Yes, that could account for the observed behaviour. I think it should be possible to use a conditional on the size of the object and call `allocate()` for a large object (with a `MAYBE_GC` check), or `ALLOC_PRIM_P` for a small object. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12492#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler