-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bytecode interpreter: Populate cells on the heap (bug #64914)
Previously, cells in the bytecode interpreter were being populated on the stack instead of on the heap. This led to repeatable crashes with cell concatenations like `b = {b{:} a{:}}`. This patch moves such cells to the heap so that large cell concatenations are made possible. [Commit message summary and text by Arun Giridhar] * pt-bytecode-vm.cc: Rework how cells are pushed. PUSH_CELL_BIG, New opcode APPEND_CELL, New opcode PUSH_OV_U64, EXPAND_CS_LIST removed * pt-bytecode-walk.cc: Use new opcodes * pt-bytecode.h: New opcodes, delete redundant * test/compile/bytecode_cell.m: Add more tests for cells
- Loading branch information
Petter T.
committed
Nov 22, 2023
1 parent
5aadaf1
commit 2b694f3
Showing
4 changed files
with
345 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.