This project is mirrored from Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
  1. 19 Oct, 2019 2 commits
    • Ben Gamari's avatar
      Skip ghc_heap_all test in nonmoving ways · d0fffae3
      Ben Gamari authored
    • Ben Gamari's avatar
      ghc-heap: Skip heap_all test with debugged RTS · 0fb0b744
      Ben Gamari authored
      The debugged RTS initializes the heap with 0xaa, which breaks the
      (admittedly rather fragile) assumption that uninitialized fields are set
      to 0x00:
      Wrong exit code for heap_all(nonmoving)(expected 0 , actual 1 )
      Stderr ( heap_all ):
      heap_all: user error (assertClosuresEq: Closures do not match
      Expected: FunClosure {info = StgInfoTable {entry = Nothing, ptrs = 0, nptrs = 1, tipe = FUN_0_1, srtlen = 0, code = Nothing}, ptrArgs = [], dataArgs = [0]}
      Actual:   FunClosure {info = StgInfoTable {entry = Nothing, ptrs = 0, nptrs = 1, tipe = FUN_0_1, srtlen = 1032832, code = Nothing}, ptrArgs = [], dataArgs = [12297829382473034410]}
      CallStack (from HasCallStack):
        assertClosuresEq, called at heap_all.hs:230:9 in main:Main
  2. 26 Jul, 2019 1 commit
  3. 11 Jun, 2019 2 commits
    • Ben Gamari's avatar
      ghc-heap: Add closure_size_noopt test · e5d275f4
      Ben Gamari authored
      This adds a new test, only run in the `normal` way, to verify the size
      of FUNs and PAPs.
    • Ben Gamari's avatar
      testsuite: Fix and extend closure_size test · 2f945086
      Ben Gamari authored
      This was previously broken in several ways. This is fixed and it also
      now tests arrays. Unfortunately I was unable to find a way to continue
      testing PAP and FUN sizes; these simply depend too much upon the
      behavior of the simplifier.
      I also tried to extend this to test non-empty arrays as well but
      unfortunately this was non-trivial as the array card size constant isn't
      readily available from haskell.
      Fixes #16531.
  4. 17 Mar, 2019 1 commit
    • Ben Gamari's avatar
      ghc-heap: Introduce closureSize · cb61371e
      Ben Gamari authored
      This function allows the user to compute the (non-transitive) size of a
      heap object in words. The "closure" in the name is admittedly confusing
      but we are stuck with this nomenclature at this point.
  5. 20 May, 2018 1 commit
    • patrickdoc's avatar
      Add HeapView functionality · ec22f7dd
      patrickdoc authored
      This pulls parts of Joachim Breitner's ghc-heap-view library inside GHC.
      The bits added are the C hooks into the RTS and a basic Haskell wrapper
      to these C hooks. The main reason for these to be added to GHC proper
      is that the code needs to be kept in sync with the closure types
      defined by the RTS. It is expected that the version of HeapView shipped
      with GHC will always work with that version of GHC and that extra
      functionality can be layered on top with a library like ghc-heap-view
      distributed via Hackage.
      Test Plan: validate
      Reviewers: simonmar, hvr, nomeata, austin, Phyx, bgamari, erikd
      Reviewed By: bgamari
      Subscribers: carter, patrickdoc, tmcgilchrist, rwbarton, thomie
      Differential Revision: