-
Notifications
You must be signed in to change notification settings - Fork 396
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
Implement omrmmap_map_file() using mmap() on z/OS #6940
Conversation
267eec9
to
fedc8d9
Compare
This seems an incompatible change with OpenJ9 due to OMRPORT_MMAP_FLAG_ZOS_READ_MAPFILE. Is it feasible to phase this in, rather than having to merge this concurrently with the OpenJ9 change that uses this flag? i.e. add OMRPORT_MMAP_FLAG_ZOS_READ_MAPFILE in another PR, and after it's merged introduce a new OpenJ9 PR to use it. Afterwards this can be merged. |
Or perhaps just temporarily add OMRPORT_MMAP_FLAG_ZOS_READ_MAPFILE in OpenJ9 if it's not defined, with a value of zero, and pass it in the mmap call. Then eclipse-openj9/openj9#17073 can remove the definition after this is merged. |
This should work. |
This change is made in order for the related OMR change eclipse-omr/omr#6940 to be merged without breaking the builds. Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
dff3de0
to
d18dae0
Compare
11ae85f
to
6f2c8b4
Compare
1. The same as other platforms, use mmap() to implement omrmmap_map_file() 2. Add OMRPORT_MMAP_FLAG_ZOS_READ_MAPFILE so that caller can still use the old implementation that read the file into the allocated memory. Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
All the existing review comments are addressed. |
jenkins build all |
jenkins build zos |
4 similar comments
jenkins build zos |
jenkins build zos |
jenkins build zos |
jenkins build zos |
Waiting for the git issue to be resolved in the zOS PR builds: https://github.ibm.com/runtimes/infrastructure/issues/7935. |
jenkins build zos |
@hangshao0 There is a failure on zOS:
|
About the failures in #6940 (comment), the test was never run on z/OS before as In a previous z/OS build:
The failure in the PR build is the first time we are running this sub-test on z/OS. |
ok, please keep us updated on how the failure will be addressed:
|
I need to enable verbose output of the portlib test to see where it failed. @AdamBrousseau Do you know how I can launch omr build on z/OS internally ? I tried one here, but the vmfarm build failed immediately. |
I have excluded |
@babsingh You can re-try the z/OS build. |
Before I launch the builds, can you please include the justification for excluding the test from #6940 (comment) and |
Updated the commit message. |
This test relies on child processes to be launched. launchChildProcess() cannot launch child process in portlib test on z/OS. Other portlib tests using child process are already excluded, so exclude mmap_test5 as well on z/OS. Related to eclipse-omr#6542 Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
jenkins build all |
Known failure #6665 observed in the Linux riscv64 build; restarting this build. jenkins build riscv |
omrmmap.c
andomrmmap.h
from zos390 directoryomrmmap_map_file()
usingmmap()
on z/OSOMRPORT_MMAP_FLAG_ZOS_READ_MAPFILE
so that caller can still usethe old implementation that read the file into the allocated memory
msync()
to implementomrmmap_msync()
on z/OS.Signed-off-by: Hang Shao hangshao@ca.ibm.com