[GHC] #10370: Compile time regression in OpenGLRaw

GHC ghc-devs at haskell.org
Fri May 1 19:25:07 UTC 2015


#10370: Compile time regression in OpenGLRaw
-------------------------------------+-------------------------------------
              Reporter:  michalt     |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Compiler    |           Version:  7.10.1
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  Compile-time
  Unknown/Multiple                   |  performance bug
             Test Case:              |        Blocked By:
              Blocking:              |   Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------
 As reported by Paolo Veronelli:

   Hello, I'm using ghc 7.10.1 to compile OpenGLRaw which is now impossible
 with -O1 and -O2 due to "ghc : out of memory error" on a 4GB linux host.
 The file making memory explode is
 Graphics.Rendering.OpenGL.Raw.Functions. With -O0 it uses 600 MB.

   The file is really huge, but I could compile it with prior versions of
 ghc.

 I've had a look and indeed the file takes way more memory to compile with
 HEAD. Looking at the heap profiles, it seems that the problem is in GHC
 itself (space leak somewhere?). I'll attach the heap profiles (from
 compiling the single module itself, i.e., `touch`ing the file and running
 prof GHC on it).

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10370>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list