Skip to content

[GR-79891] WordCast issue in AMD64MemoryMaskingAddressUsagePolicy. - #14529

Merged
graalvmbot merged 1 commit into
masterfrom
chw/GR-79891/fix_vos_jit_memory_masking
Sep 28, 2026
Merged

graalvmbot merged 1 commit into
masterfrom
chw/GR-79891/fix_vos_jit_memory_masking

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

Problem to be solved
With AMD64 MemoryMaskingAndFencing enabled, the address-lowering phase treats WordCastNode as an address pass-through and examines its downstream users.

For a graph such as:

  OffsetAddressNode -> WordCastNode -> ForeignCallNode/FixedAccessNode

the downstream user correctly causes the address to require masking. However, the immediate WordCastNode was not classified as a node that may receive a masked address. The fail-closed validation therefore aborted compilation with:

  Unexpected address usage ...: WordCastNode

VOS-JIT in MLE encounters this pattern through runtime/GC barrier paths, causing failed runtime compilations and resulting performance regressions.

Champion Reviewer
@"raphael.m.mosaner@oracle.com"

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 25, 2026
@graalvmbot
graalvmbot merged commit dd75fc2 into master Sep 28, 2026
3 checks passed
@graalvmbot
graalvmbot deleted the chw/GR-79891/fix_vos_jit_memory_masking branch September 28, 2026 18:25
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