Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug related to CodeCache utilization reporting #7138

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

mpirvu
Copy link
Contributor

@mpirvu mpirvu commented Oct 7, 2023

PR #7129 moved the code that writes a TR::CodeCache pointer into the beginning of the code cache segment towards the end of the
OMR::CodeCache::initialize routine. This makes sense because we want to 'advertise' to the world the newly created TR::CodeCache structure only after this structure has been fully initialized.
However, OMR::CodeCache::initialize() routine contains an early return that is taken when the JIT does not need trampolines. On this path we no longer write the TR::CodeCache pointer into the beginning of the code cache segment and the VM is unable to retrieve code cache utilization statistics.
This commit avoid the early return mentioned above.

PR eclipse#7129 moved the code
that writes a TR::CodeCache pointer into the beginning of
the code cache segment towards the end of the
OMR::CodeCache::initialize routine. This makes sense
because we want to 'advertise' to the world the newly created
TR::CodeCache structure only after this structure has been
fully initialized.
However, OMR::CodeCache::initialize() routine contains an early
return that is taken when the JIT does not need trampolines. On
this path we no longer write the TR::CodeCache pointer into the
beginning of the code cache segment and the VM is unable to
retrieve code cache utilization statistics.
This commit avoid the early return mentioned above.

Signed-off-by: Marius <[email protected]>
@mpirvu
Copy link
Contributor Author

mpirvu commented Oct 10, 2023

@dsouzai Could you please review/merge this PR? Thanks

@dsouzai
Copy link
Member

dsouzai commented Oct 10, 2023

jenkins build all

@dsouzai dsouzai self-assigned this Oct 10, 2023
@dsouzai
Copy link
Member

dsouzai commented Oct 11, 2023

eclipse.omr test failure due to #6516

@dsouzai
Copy link
Member

dsouzai commented Oct 11, 2023

windows error because or infra issue:

[2023-10-10T14:51:25.422Z] Cannot contact win2019x64-openj9-2: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
[2023-10-10T14:53:01.908Z]     35>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(423,5): error MSB6006: "CL.exe" exited with code 4. [C:\omr\workspace\PullRequest-win_x86-64\Build\build\jitbuilder\jitbuilder.vcxproj]

@dsouzai
Copy link
Member

dsouzai commented Oct 11, 2023

jenkins build win

@dsouzai dsouzai merged commit 4aa604b into eclipse:master Oct 11, 2023
16 of 18 checks passed
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