-
Notifications
You must be signed in to change notification settings - Fork 738
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
Install AOT methods into cold code #19976
Conversation
jenkins test sanity.functional all jdk21 depends eclipse-omr/omr#7436 |
aarch64 test failure looks to be due to #19845 win failure due to
|
Can't merge this yet as https://github.com/eclipse-openj9/openj9-omr/tree/openj9 does not yet have the necessary OMR changes. |
@vijaysun-omr @mpirvu fyi |
@@ -1120,7 +1120,18 @@ TR_SharedCacheRelocationRuntime::allocateSpaceInCodeCache(UDATA codeSize) | |||
} | |||
|
|||
uint8_t *coldCode; | |||
U_8 *codeStart = manager->allocateCodeMemory(codeSize, 0, &_codeCache, &coldCode, false); | |||
U_8 *codeStart; | |||
bool installIntoCold = TR::Options::getCmdLineOptions()->getOption(TR_ReinstallAOTToColdCode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the option called "reinstall"? Why not "install", especially that the variable is called installIntoCold
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think local variables can have somewhat shortened names. The option is already merged into OMR. Do you think it's worth renaming it? @mpirvu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can open an issue to follow up, but in the interest of delivering this quicker it can stay like this for the time being.
ok, but is it actually re-installing AOT? |
I actually don't know what is considered the right terminology. I searched through all AOT documents and did not find any mentioning of installing or re-installing. |
I think the terminology has always been to store to the SCC and install into the code cache. Although we, during the AOT compile, generate code into the code cache, that isn't considered installing as the code in there isn't final (ie, it's not relocated) and so would not successfully execute.
I think it's fine for now, but the option should probably be changed at some point; I guess when I merged the OMR PR I wasn't careful enough about the name. |
Actually, let me just open a new OMR PR to get done with it. |
- if TR_InstallAOTToCold option is on, install AOT methods into the cold part of the code cache
691c590
to
65f2969
Compare
Renamed the option. |
jenkins test sanity.functional all jdk21 |
windows failed because of the usual
The xlinux failures all seem to be related to being unable to create a dump. |
There was a configuration problem on ub22x64j95 which should be resolved now. |
The failures seems to be unrelated, especially since the code is only enabled under an option. |
jenkins test sanity.functional xlinux jdk21 |
All (relevant) tests passed; will wait until @mpirvu's OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Depends on: eclipse-omr/omr#7440