Create -XX:DisclaimDir= command line option - #23361
Conversation
|
Changed to draft until the omr dependency gets integrated. |
47dccc5 to
af5f4b0
Compare
|
Jenkins test sanity xlinux,plinux,zlinux jdk21 depends eclipse/omr#master |
dsouzai
left a comment
There was a problem hiding this comment.
Compiler changes look fine to me; I just have some minor thoughts
|
plinux had some testSCCMLTests1_openj9_0 failures related to destroying a SCC: It's very unlikely that the code in this PR can cause such a failure. |
babsingh
left a comment
There was a problem hiding this comment.
Minor formatting nits for consistency.
The existing PR build remains valid after these changes: https://openj9-jenkins.osuosl.org/job/PullRequest-OpenJ9/8740.
The SCC failures are known and unrelated; they have also been observed in other PR builds.
c2b7178 to
fa38591
Compare
This commit creates a new command line option called `-XX:DisclaimDir=` which can be used to set the desired directory for the backing files created by the memory disclaim mechanism. If no such option is specified, the JVM will use either swap (if possible) or `/tmp` directory. If the specified directory does not exist or it's not a directory, the JVM will terminate. If the specified directory exists, but it is not writeable or it has less than 1 GB free space, the JVM will continue to run, but it will not use the disclaim mechanism. The disclaim mechanism will also be disabled if the specified directory is remote (e.g. nfs) or it's using RAM under the covers (e.g. ramfs ot tmpfs). Depends on: eclipse-omr/omr#8125 Depends on: eclipse-omr/omr#8137 Signed-off-by: Marius <mpirvu@ca.ibm.com>
|
@dsouzai PR is ready for another review. |
|
This PR is still set as a draft. But the changes look fine to me. |
|
The PR will stay in draft mode until eclipse-omr/omr#8137 promotes. |
|
Jenkins test sanity xlinux,plinux,zlinux jdk21 depends eclipse/omr#master |
|
jenkins compile all jdk8,jdk25 |
|
jenkins compile xlinux,plinux,zlinux,alinux64 jdk8,jdk25 depends eclipse/omr#master |
|
plinux fails This is a known issue. |
|
The OMR dependency has propagated to openj9-omr branch. This PR is ready to be merged. |
This commit creates a new command line option called
-XX:DisclaimDir=which can be used to set the desired directory for the backing files created by the memory disclaim mechanism.If no such option is specified, the JVM will use either swap (if possible) or
/tmpdirectory.If the specified directory does not exist or it's not a directory, the JVM will terminate.
If the specified directory exists, but it is not writeable or it has less than 1 GB free space, the JVM will continue to run, but it will not use the disclaim mechanism.
The disclaim mechanism will also be disabled if the specified directory is remote (e.g. nfs) or it's using RAM under the covers (e.g. ramfs ot tmpfs).
Depends on: eclipse-omr/omr#8125
Depends on: eclipse-omr/omr#8137