Skip to content

Guarantee new array will be zero initialized in transformArrayCloneCall - #7481

Merged
vijaysun-omr merged 1 commit into
eclipse-omr:masterfrom
maggietuttle:zeroNewArray
Oct 4, 2024
Merged

Guarantee new array will be zero initialized in transformArrayCloneCall#7481
vijaysun-omr merged 1 commit into
eclipse-omr:masterfrom
maggietuttle:zeroNewArray

Conversation

@maggietuttle

Copy link
Copy Markdown
Contributor

Guarantee that newarrays generated from transformations of array clone calls will always be zero initialized, ensuring array allocation is done inline, whether TR_disableSkipZeroInitInVP is enabled or not.

While investigation and development into a fix for a bug caused by corruption of a TLH pointer forcing out of line array allocation when we skip zero initialization is ongoing, this PR will provide a temporary performance boost at the (rare and minor) expense of occasional zero initialization of arrays that don't need to be zero initialized.

Guarantee that new array generated from transformation of array
clone call will always be zero initialized, ensuring array allocation
is done inline, whether TR_disableSkipZeroInitInVP is enabled or not

Signed-off-by: Dylan Tuttle <jdylantuttle@gmail.com>
@maggietuttle

Copy link
Copy Markdown
Contributor Author

@vijaysun-omr @hzongaro Here is the requested PR.

@vijaysun-omr

Copy link
Copy Markdown
Contributor

Jenkins build all

@vijaysun-omr

Copy link
Copy Markdown
Contributor

Jenkins build plinux

@vijaysun-omr

Copy link
Copy Markdown
Contributor

Thanks to @hzongaro for spotting that the failure here is a dup of #6571 which is a known issue. I am merging.

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.

2 participants