openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Add FFI Upcall support on z/OS for primitives

Open dchopra001 opened this issue 1 year ago • 2 comments

Add FFI Upcall support on z/OS for primitives

dchopra001 avatar Jun 13 '24 17:06 dchopra001

FYI: @tajila, @pshipton

ChengJin01 avatar Jun 13 '24 20:06 ChengJin01

Add @zl-wang for review in the case of generic issues based on the initial design for thunk.

ChengJin01 avatar Jun 13 '24 20:06 ChengJin01

@dchopra001 going to take a look at the changes in details, but a quick question, would it be possible (and simpler as well) to common some of the instruction generation routine we have here and in https://github.com/eclipse-openj9/openj9/blob/master/runtime/vm/xz64/UpcallThunkGen.cpp ?

New header added here: https://github.com/eclipse-openj9/openj9/pull/19701/commits/e1947c2b216cd5d2e081d8b0831bba3001aa7c9c.

dchopra001 avatar Jul 10 '24 20:07 dchopra001

Adding the tests I used to verify correctness. This should provide confidence that the feature is complete. UpcallMHWithPrimTests.java.txt

I will do complete manual testing using the jtreg + jck + openj9 functional tests once the structs PR is open (after this is merged). A lot of the tests are mixed with structs and primitives, so it's a bit tedious to do the testing without the struct changes in their final state.

dchopra001 avatar Jul 10 '24 20:07 dchopra001

Jenkins line endings check

joransiu avatar Jul 12 '24 01:07 joransiu

@dchopra001 : Line Ending check is flagging the following -- Can you double check?

| runtime/vm/mz64/UpcallThunkGen.cpp:208: trailing whitespace.

joransiu avatar Jul 12 '24 01:07 joransiu

@dchopra001 : Line Ending check is flagging the following -- Can you double check?

The line endings check has passed now.

dchopra001 avatar Jul 12 '24 20:07 dchopra001

@joransiu If you have no more review comments, then would you be able to approve and launch the PR testing?

dchopra001 avatar Jul 12 '24 21:07 dchopra001

jenkins test sanity zlinux jdk21

joransiu avatar Jul 12 '24 22:07 joransiu

Line endings check with stderr: fatal: unable to access 'https://github.com/eclipse-openj9/openj9.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated..

I'm not sure how to restart it.

dchopra001 avatar Jul 13 '24 00:07 dchopra001

Jenkins line endings check

joransiu avatar Jul 13 '24 00:07 joransiu

jenkins test sanity zlinux jdk21

joransiu avatar Jul 13 '24 01:07 joransiu

jenkins test sanity zlinux jdk21

joransiu avatar Jul 14 '24 23:07 joransiu

jenkins test sanity zlinux jdk21

joransiu avatar Jul 15 '24 02:07 joransiu