Skip to content

[GR-82351] Remove baseOffset from Marshal. - #1382

Merged
graalvmbot merged 2 commits into
masterfrom
mdsouza/GR-82351-remove-baseOffset
Nov 30, 2026
Merged

graalvmbot merged 2 commits into
masterfrom
mdsouza/GR-82351-remove-baseOffset

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

I think baseOffset was added to account for a nested root serialized in the Bytecode DSL payload for an outer root. But we are careful to never do this, instead emitting an index into the co_consts array that gets encoded beside the Bytecode DSL payload (e.g., MakeFunction).

Removing it does not seem to break any existing tests.

This change makes execution bytecodes adoption (GR-80168) easier since we don't need to worry about a baseOffset.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 30, 2026
@graalvmbot
graalvmbot merged commit 7cb3c53 into master Nov 30, 2026
17 of 18 checks passed
@graalvmbot
graalvmbot deleted the mdsouza/GR-82351-remove-baseOffset branch November 30, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants