Skip to content

Print vlog message for all assumption reclamations - #24001

Merged
mpirvu merged 1 commit into
eclipse-openj9:masterfrom
vijaysun-omr:unload-rat1
May 29, 2026
Merged

Print vlog message for all assumption reclamations#24001
mpirvu merged 1 commit into
eclipse-openj9:masterfrom
vijaysun-omr:unload-rat1

Conversation

@vijaysun-omr

Copy link
Copy Markdown
Contributor

The verbose log messages printed when runtime assumptions get reclaimed were not being emitted at all of the right spots in the code. This commit adds a message at the two additional places where runtime assumptions memory gets freed.

Signed-off-by: Vijay Sundaresan vijaysun@ca.ibm.com

@vijaysun-omr

Copy link
Copy Markdown
Contributor Author

@mpirvu please review this RAS change when you get time

@mpirvu
mpirvu self-requested a review May 28, 2026 20:46

@mpirvu mpirvu 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. There is a strange printf in the existing code. Is it possible that the containing method never gets executed?

printf("Freeing Assumption 0x%" OMR_PRIxPTR " and next assumption is 0x%" OMR_PRIxPTR "\n",
(uintptr_t)assumptionList, (uintptr_t)next);

if (TR::Options::getCmdLineOptions()->getVerboseOption(TR_VerboseRuntimeAssumptions)) {

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.

Why is there a printf in this code? Because I have never seen this on the console, I assume this code never gets executed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will look into this code path and remove the printf in any case.

@vijaysun-omr vijaysun-omr May 28, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks like that code can only run under an option based on

if (TR::Options::getCmdLineOptions()->getOption(TR_EnableRATPurging)) {

This routine gets into the one you asked about (with printf) a couple of levels down the call chain. So that explains why we have never seen the printf, but I will remove it anyway now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated commit to remove printf

@mpirvu mpirvu self-assigned this May 28, 2026
The verbose log messages printed when runtime assumptions
get reclaimed were not being emitted at all of the right
spots in the code. This commit adds a message at the two
additional places where runtime assumptions memory gets freed.

Signed-off-by: Vijay Sundaresan vijaysun@ca.ibm.com

@mpirvu mpirvu 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

@mpirvu

mpirvu commented May 28, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity.functional xlinux jdk26

@vijaysun-omr vijaysun-omr changed the title WIP : Print vlog message for all assumption reclamations Print vlog message for all assumption reclamations May 28, 2026
@mpirvu

mpirvu commented May 29, 2026

Copy link
Copy Markdown
Contributor

Tests have passed. Merging.

@mpirvu
mpirvu merged commit 653128f into eclipse-openj9:master May 29, 2026
6 checks passed
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.

2 participants