Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,385
    • Issues 4,385
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 370
    • Merge Requests 370
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Merge Requests
  • !3011

Open
Opened Apr 01, 2020 by Alex D@nineonine🍄Developer
  • Report abuse
Report abuse

Augment StgCase with allocation info flag for #16064

  • Overview 101
  • Commits 5
  • Pipelines 16
  • Changes 13

This patch is PART1 of Implementation Plan described here: https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/rts/haskell-execution/heap-checks

We extend StgCase with extra allocation boolean flag, with the following meaning:

  • Flag = True <=> each alternative is responsible for adding a heap check for its own allocation
  • Flag = False <=> alternatives do not do heap checks. Instead their allocation (or the max of allocation across the branches) is combined into the heap-check for the parent

By "parent" we mean the expression of which the case is a part.

We will then consult this info to determine the GcPlan in codegen.

Main ticket: #16064

Edited Apr 20, 2020 by Simon Peyton Jones
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: ghc/ghc!3011
Source branch: T16064-augment-GenStgAlt