Skip to content

[GR-80723] Fix publishOldBytecodes emission. - #14790

Merged
graalvmbot merged 4 commits into
masterfrom
mdsouza/GR-80723-fix-publishOldBytecodes-emission
Oct 28, 2026
Merged

graalvmbot merged 4 commits into
masterfrom
mdsouza/GR-80723-fix-publishOldBytecodes-emission

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

GitHub contribution: #14712

hippi345 and others added 4 commits October 26, 2026 14:03
Do not emit publishOldBytecodes() from updateBytecode unless instruction
tracing is enabled. That method is only generated when tracing (or other
bytecode-updatable features) is on, so a tracing-disabled root with no
instrumentations failed to compile.

Fixes #14682
Gate the generated updateBytecode call on isBytecodeUpdatable() rather
than enableInstructionTracing. Tracing-disabled roots with
@instrumentation still declare publishOldBytecodes and must invoke it
before invalidation.
Rename InstructionTracingDisabledGenerationTest to NotUpdatableBytecodeTest
and describe the failure in terms of bytecode updatability. Drop the tests
that inspect generated methods; compiling the tracing-disabled root is the
regression check.
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 27, 2026
@graalvmbot
graalvmbot merged commit 095232a into master Oct 28, 2026
3 checks passed
@graalvmbot
graalvmbot deleted the mdsouza/GR-80723-fix-publishOldBytecodes-emission branch October 28, 2026 06:10
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.

3 participants