Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMigrate processor/feature detection from OpenJ9 to OMR Part 1 #4503
Conversation
This comment has been minimized.
This comment has been minimized.
These functions have been tested on Z, Power and X86 for Windows and Unix systems! I think we're ready for a full review! |
This comment has been minimized.
This comment has been minimized.
@genie-omr build all |
978156e
to
ffa758b
This comment has been minimized.
This comment has been minimized.
@Leonardo2718 Could you run the PR builds again? There were some build issues on LinuxPPC and AIX, and I've pushed changes to fix these issues. |
This comment has been minimized.
This comment has been minimized.
Also FYI, I've broken down the PR into several commits for clarity, but will merge them when the changes are approved! |
This comment has been minimized.
This comment has been minimized.
@genie-omr build all |
This comment has been minimized.
This comment has been minimized.
Aidan, for the new tests that you're adding, you should just use core gtest functionality, rather than using the port test helpers. Specifically, don't call |
This comment has been minimized.
This comment has been minimized.
This looks like a pretty straightforward copy/paste/rename job, so if you want to do clean up in a later PR, I would be fine with that, it's up to you. |
This comment has been minimized.
This comment has been minimized.
The AIX failure is interesting, I don't think it's related to your change. EDIT: actually, it seems it is your problem. @genie-omr build aix The x86-64 build, however...
The |
This comment has been minimized.
This comment has been minimized.
@genie-omr build aix |
This comment has been minimized.
This comment has been minimized.
I removed |
This comment has been minimized.
This comment has been minimized.
Wherever possible, the port test helpers are being replaced with gtest. I opened an issue #4530. Any new tests should just be using gtest. |
setFeature(desc, OMRPORT_PPC_FEATURE_POWER4); | ||
} | ||
#endif /* !defined(J9OS_I5_V6R1) */ | ||
#if !defined(J9OS_I5_V7R2) && !defined(J9OS_I5_V6R1) |
This comment has been minimized.
This comment has been minimized.
rwy0717
Nov 4, 2019
Member
These are never defined in OMR, and the code below fails to compile on aix 6.1.
This comment has been minimized.
This comment has been minimized.
Changes are fixed! @rwy0717 When you are done reviewing, I'll merge all of my changes into 1 single commit. |
This comment has been minimized.
This comment has been minimized.
@genie-omr build all |
6856f77
to
0a8acf8
This comment has been minimized.
This comment has been minimized.
@genie-omr build all |
6b559c6
to
5a0de8b
This comment has been minimized.
This comment has been minimized.
Let's make sure to squash the review addressing commits here before merging (after committer assigned has approved). |
This comment has been minimized.
This comment has been minimized.
@genie-omr build all |
This comment has been minimized.
This comment has been minimized.
Move required macros, enums and structs from OpenJ9 to OMR's port library Add function signatures for processor/feature detection to OMR Implement processor detection on Windows Add processor and feature detection for Unix Includes Linux, AIX PPC and ZOS systems Add test to verify processor/feature detection. Signed-off-by: Aidan Ha <qbha@edu.uwaterloo.ca>
This comment has been minimized.
This comment has been minimized.
I've gone ahead and squashed my commits! |
This comment has been minimized.
This comment has been minimized.
@genie-omr build all |
747e6a4
into
eclipse:master
AidanHa commentedOct 23, 2019
•
edited by fjeremic
OpenJ9 port library has processor and feature detections that can be sunk down to OMR. This can be divided into 4 steps:
1: Creation of processor and feature detection in OMR (from OpenJ9).
2: Implementation of the new feature throughout out OMR.
3: Implementation of the new feature throughout OpenJ9.
4: Deletion of the processor detection in OpenJ9 port library.
This PR serves to implement step 1 of the list above. This PR includes the following:
omrport.h
(Commit 1)Issue: #4339