Open XL header includes and vm flag fixup - #19910
Conversation
r30shah
left a comment
There was a problem hiding this comment.
I just have one question I have asked, changes LGTM. Will launch test internally with this to make sure we do not run into any issue before continuing to merge.
| if(OMR_TOOLCONFIG STREQUAL "openxl") | ||
| # Hooks are not implemented in Open XL. The default debug compiles in Open XL will be NOHOOK | ||
| # equivalent. | ||
| list(APPEND interp_flags_to_remove "-qdebug=nohook") |
There was a problem hiding this comment.
runtime/vm/CMakeLists.txt : Added appropriate conditionals to apply correct flags for Open XL suggested by compiler team. Hooks are not implemented for Open XL.
Just to understand, with xlc it removes -O3, -g for compiler but with OpenXL it will not ?
There was a problem hiding this comment.
Why won't we want -O2 being added for interp_new_flags from the XLC case?
There was a problem hiding this comment.
That might be an oversight, from the discussions I can find right now the intention was only to remove the "\"-Wc flags , but leave the same optimizations. So I will try with restoring the optimization levels and rebuilding.
If there is something I may not be remembering, at least it might remind me if it was intentional.
There was a problem hiding this comment.
I think this is what the intended outcome was, which I am currently testing out ...
if(OMR_TOOLCONFIG STREQUAL "openxl") # Hooks are not implemented in Open XL. The default debug compiles in Open XL will be NOHOOK
# equivalent.
list(APPEND interp_flags_to_remove "-O3" "-g")
list(APPEND interp_new_flags -O2)
else()
# TODO need to handle optimized debug info
list(APPEND interp_flags_to_remove "-O3" "-g" "-qdebug=nohook")
list(APPEND interp_new_flags
-O2
"\"-Wc,TBYDBG(-qdebug=MRABIG)\""
"\"-Wc,TBYDBG(-qdebug=lincomm:ptranl:tfbagg)\""
"\"-Wc,FEDBG(-qxflag=InlineDespiteVolatileInArgs)\""
)
There was a problem hiding this comment.
Verified these changes are working with openxl, still need to test xlc with jenkins, but I imagine it won't be a problem since that clause/conditional has remained unchanged altogether.
| #include <signal.h> | ||
| #endif | ||
|
|
||
| #include "atoe.h" |
There was a problem hiding this comment.
@Deigue We may need this guarded by platform - See failures on other platform (/job_output.php?id=89250736)
1378f79 to
d4f28ce
Compare
|
I have removed edit: Also rebased branch to eclipse/master |
d4f28ce to
ce865bd
Compare
|
jdk21 build passes , same commit based off |
decomp003.c/decomp005.c : strcasecmp() implict function declaration needs strings.h j9vmemTest.c : -Wimplicit-int , missing type specifier that defaults to "int" jvminit.c : atoe_enableFileTagging() implicit function declaration requires atoe.h runtime/vm/CMakeLists.txt : Added appropriate conditionals to apply correct flags for Open XL suggested by compiler team. Hooks are not implemented for Open XL. Signed-off-by: Gaurav Chaudhari <gaurav.chaudhari@ibm.com>
ce865bd to
43a112d
Compare
|
This one is ready @r30shah , and the dependent changes from eclipse-omr/omr#7383 fixing the headers has been merged. EDIT: Sorry, will update this once I have verified Java 8 testing, need to verify that as well. |
|
All passed with java 8 and java 21 builds. |
|
jenkins test sanity zlinux jdk21 |
|
|
||
| #include "jvmti_test.h" | ||
| #include <string.h> | ||
| #include <strings.h> |
There was a problem hiding this comment.
@Deigue Given that this is causing failure - I wonder, we should guard this with J9ZOS same as how atoe.h was done (Assuming that only z/OS needs the function defined in strings.hwhich you may have bumped into with OpenXL work.
There was a problem hiding this comment.
yes that sounds like a good idea, I think the build must have failed on one of the platforms we didnt verify with.
Same for decomp005.c too I guess...
runtime/tests/jsig/main.c : dlfcn.h needs to be defined before defines for dllfree()/dllload() due to conflicting type definitions decomp003.c/decomp005.c : strcasecmp() implict function declaration needs strings.h j9vmemTest.c : -Wimplicit-int , missing type specifier that defaults to "int"
jvminit.c : atoe_enableFileTagging() implicit function declaration requires atoe.h
runtime/vm/CMakeLists.txt : Added appropriate conditionals to apply correct flags for Open XL suggested by compiler team. Hooks are not implemented for Open XL.