Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Luite Stegeman's avatar
    9d9d9bc5
    Support large stack frames/offsets in GHCi bytecode interpreter · 9d9d9bc5
    Luite Stegeman authored and Ben Gamari's avatar Ben Gamari committed
    Bytecode instructions like PUSH_L (push a local variable) contain
    an operand that refers to the stack slot. Before this patch, the
    operand type was SmallOp (Word16), limiting the maximum stack
    offset to 65535 words. This could cause compiler panics in some
    cases (See #22888).
    
    This patch changes the operand type for stack offsets from
    SmallOp to Op, removing the stack offset limit.
    
    Fixes #22888
    
    (cherry picked from commit 564164ef)
    9d9d9bc5
    History
    Support large stack frames/offsets in GHCi bytecode interpreter
    Luite Stegeman authored and Ben Gamari's avatar Ben Gamari committed
    Bytecode instructions like PUSH_L (push a local variable) contain
    an operand that refers to the stack slot. Before this patch, the
    operand type was SmallOp (Word16), limiting the maximum stack
    offset to 65535 words. This could cause compiler panics in some
    cases (See #22888).
    
    This patch changes the operand type for stack offsets from
    SmallOp to Op, removing the stack offset limit.
    
    Fixes #22888
    
    (cherry picked from commit 564164ef)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.