-
Notifications
You must be signed in to change notification settings - Fork 397
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
Clean up x/env/OMRCPU class and add missing supportsHLE() #2425
Conversation
@genie-omr build all |
Is this a WIP because it's not ready for review, or because you want to hold off merging until your downstream change is ready to merge? If it's the latter, I'll review. |
Hi Daryl, thanks for looking at this. It's the latter, please review for me. |
No need to review for now, I found a bug with my code changes |
e0db641
to
cf6ee44
Compare
This code change is ready for review and merging. |
cf6ee44
to
24c5a9c
Compare
24c5a9c
to
c31f6da
Compare
LGTM |
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.
A nice bit of cleanup, but I'd like to see it taken just a little bit further and the commits structured better.
Thanks @harryyu1994 !
cdac6bf
to
4eed21b
Compare
bah, i only meant to initiate tests on x platforms :( . oh well, it will be over-the-top tested... |
Hi Mark, @mstoodle thanks for the review, appreciate your help! I would like to hold off merging until I verify that the downstream change(openj9) works as intended. I will let you know. |
fair enough! i marked the dependent PR in Openj9 as depending on this one. |
029a782
to
8d94796
Compare
Just got back to this. Removing the J9_PROJECT_SPECIFIC guard in OMR::X86::queryX86TargetCPUID() is causing the OpenJ9 build to fail, so I'm planning to leave it for now. I've ran sanity tests with the remaining two commits along with the downstream changes and they seem to be passing. @mstoodle please help me review and merge when you have time. Downstream change is also ready for review. Thanks in advance! |
@harryyu1994 can you be more specific about how the OpenJ9 build failed? |
@mstoodle When we execute the JVM, we get |
@harryyu1994 I actually wasn't suggesting to remove the #ifdef, I was proposing to move the #ifdef controlled code into the J9 specific extension of this class (which already exists): i.e. put this #ifdef'd code into J9::X86::CPU::queryX86TargetCPUID() in the openj9 project and remove it from OMR.
But we could introduce an empty "return false" implementation of TR::JitConfig::instance() into OpenJ9 that would allow us to remove this #ifdef structure. I have to say that the else branch of this code looks pretty weird to me (why not just use jitGetCPUID() even if there isn't a jitconfig?) |
@mstoodle Sorry I didn't quite get it. Here are the two versions of
To me, the big chunk of code in OMR::queryX86TargetCPUID() isn't for OpenJ9, and only return NULL is, not sure what is there to move. |
8d94796
to
a375d36
Compare
@mstoodle Hi Mark, this PR is ready for another review, thanks! |
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.
These are the changes I was looking for. Thanks, @harryyu1994 !
@mstoodle , I think this is ready to merge. |
ping @mstoodle |
Allow me to rebase and run tests against it before merging. |
a375d36
to
211ef6b
Compare
I think this PR will break a downstream project (OpenJ9), I will work on getting that OpenJ9 PR approved today/tonight. |
For the record, I believe that's this one: eclipse-openj9/openj9#1613 right @harryyu1994 ? |
Will remove WIP tag once eclipse-openj9/openj9#1613 is ready. Currently eclipse-openj9/openj9#1613 needs another PR to be merged. |
211ef6b
to
cca3e30
Compare
ecab16c
to
26a4c8b
Compare
@genie-omr build all @mstoodle ping |
Signed-off-by: Harry Yu <harryyu1994@gmail.com>
Signed-off-by: Harry Yu <harryyu1994@gmail.com>
Signed-off-by: Harry Yu <harryyu1994@gmail.com>
26a4c8b
to
0c1a736
Compare
For completeness: genie-omr build all The openj9 PR that I suspect is co-dependent on this one cannot be merged right now due to (I believe) unrelated problems in the PR builds. Hopefully those issues will get cleared up soon... |
@mstoodle, I believe both the downstream PR and this PR are ready to merge now. |
OpenJ9 has asked that we hold off on this co-dependent merge until their release is closer to closed away (even though they've already split the release branch). Anyway, that request translated to "please hold off until Monday". Since this PR isn't urgent, I'm accepting the request and will revisit this PR on Monday. |
Merging now along with dependent OpenJ9 PR |
Signed-off-by: Harry Yu harryyu1994@gmail.com