Skip to content

Enable inhibitRecompilation option for specific methods#23975

Draft
dev-koan wants to merge 3 commits into
eclipse-openj9:masterfrom
dev-koan:feature/inhibitRecompilation
Draft

Enable inhibitRecompilation option for specific methods#23975
dev-koan wants to merge 3 commits into
eclipse-openj9:masterfrom
dev-koan:feature/inhibitRecompilation

Conversation

@dev-koan
Copy link
Copy Markdown
Contributor

@dev-koan dev-koan commented May 25, 2026

Currently, the option inhibitRecompilation is applied globally. This update enables the user to use the option for a specific method.

Fixes: #23902

Signed-off-by: Dev Agarwal dev.agarwal@ibm.com

Currently, the option inhibitRecompilation is applied globally.
This update enables the user to use the option for a specific method.

Signed-off-by: Dev Agarwal <dev.agarwal@ibm.com>
@dev-koan dev-koan requested a review from dsouzai as a code owner May 25, 2026 19:12
@dev-koan dev-koan marked this pull request as draft May 25, 2026 19:12
@mpirvu mpirvu requested review from mpirvu and removed request for dsouzai May 28, 2026 18:12
@mpirvu mpirvu self-assigned this May 28, 2026
Copy link
Copy Markdown
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

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

The code is on the right track. I am guessing that there are other code patch that trigger recompilations. We have to identify and address them.
You also need to do manual testing since no test is going to exercise this option.
Also, it may need changes at omr level to allow the option to be applied on a per method basis (remove NOT_IN_SUBSET)

// promote this method through sample thresholds
} else // allow transition to HOT through exhaustion of count
{
if (_methodInfo->InhibitRecompilation()) {
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.

I am thinking that instead of returning we need to replenish the count like we do in the if statement above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow -Xjit:inhibitRecompilation to be applied per method

2 participants