Skip to content

Fix zeroReg initialization when disableBatchClear is set - #15371

Merged
ymanton merged 2 commits into
eclipse-openj9:masterfrom
bhavanisn:disBatchClr_fix
Jun 28, 2022
Merged

Fix zeroReg initialization when disableBatchClear is set#15371
ymanton merged 2 commits into
eclipse-openj9:masterfrom
bhavanisn:disBatchClr_fix

Conversation

@bhavanisn

Copy link
Copy Markdown
Contributor

This fixes the incorrect flag check for zeroReg initialization in case
TR_DisableBatchClear option is enabled. In spite of dualTLH is enabled
or not when DisableBatchClear option is enabled, the heap allocated
has to be zeroInitialized by jitted code else will lead to crash due to
random memory values as GC will skip zero Initialization.

@bhavanisn

Copy link
Copy Markdown
Contributor Author

@zl-wang @ymanton

Comment thread runtime/compiler/p/codegen/J9TreeEvaluator.cpp Outdated
Comment thread runtime/compiler/p/codegen/J9TreeEvaluator.cpp

@ymanton ymanton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@ymanton

ymanton commented Jun 27, 2022

Copy link
Copy Markdown
Member

Jenkins test sanity.functional plinux,aix jdk8,jdk11

@ymanton

ymanton commented Jun 28, 2022

Copy link
Copy Markdown
Member

Batch clearing is disabled by default so PR tests are verifying that the patches don't break the default behaviour.

I've checked with @bhavanisn that internal testing to verify that running with batch clearing actually disabled also passes testing.

@ymanton
ymanton merged commit f2960b6 into eclipse-openj9:master Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants