Skip to content

Update node uncommoning for offHeap - #7437

Merged
0xdaryl merged 2 commits into
eclipse-omr:masterfrom
VermaSh:setPinningArrayPointer_fix
Aug 9, 2024
Merged

Update node uncommoning for offHeap#7437
0xdaryl merged 2 commits into
eclipse-omr:masterfrom
VermaSh:setPinningArrayPointer_fix

Conversation

@VermaSh

@VermaSh VermaSh commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

Include dataAddr pointer check with ArrayRef check when unocmmoning
a node.

Previously, only aiadd or aladd could be used for array access but with
offHeap, dataAddr pointer nodes (aloadi) can also be used for array access.
Hence we must check for dataAddr pointer and ArrayRef when uncommoning a node.

Signed-off-by: Shubham Verma shubhamv.sv@gmail.com

Include dataAddr pointer check with ArrayRef check when unocmmoning
a node.

Previously, only aiadd or aladd could be used for array access but with
offHeap, dataAddr pointer nodes (aloadi) can also be used for array access.
Hence we must check for dataAddr pointer and ArrayRef when uncommoning a node.

Signed-off-by: Shubham Verma <shubhamv.sv@gmail.com>
@VermaSh
VermaSh requested a review from vijaysun-omr as a code owner August 8, 2024 20:40
@VermaSh

VermaSh commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

@r30shah / @zl-wang / @0xdaryl: This is ready for review

@r30shah

r30shah commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

@VermaSh Can you add bit more context for second commit?

@VermaSh
VermaSh force-pushed the setPinningArrayPointer_fix branch from 2f4efcb to 24c28dd Compare August 8, 2024 21:04
@VermaSh

VermaSh commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

@r30shah I have updated the commit description.

The check is needed because simply returning 5th element could result
in garbage being returned as pinning array pointer. Returning non null
pinning array pointer when it wasn't set can lead to runtime failures.

Signed-off-by: Shubham Verma <shubhamv.sv@gmail.com>
@VermaSh
VermaSh force-pushed the setPinningArrayPointer_fix branch from 24c28dd to 1fa94fd Compare August 8, 2024 21:08

@r30shah r30shah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@r30shah

r30shah commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

jenkins build all

@0xdaryl 0xdaryl self-assigned this Aug 9, 2024
@0xdaryl
0xdaryl merged commit 2db91fd into eclipse-omr:master Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants