-
Notifications
You must be signed in to change notification settings - Fork 720
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
Cmake build update for off-heap #20461
Conversation
@amicic @dmitripivkine please review the changes.Thanks |
with this, we will start compiling a lot more code, especially in JIT land |
FYI @rmnattas |
should we not be updating CR variant of the files too? |
I think the flag should be J9VM_GC_SPARSE_HEAP_ALLOCATION (without ENABLE), but it would probably be wise to update all references of it in the code, first @dmitripivkine do we care, at all? |
Agreed with both points. Also agree Compressed specs should be updated as well. |
looks CR variants would include nonCR ones, such as
|
OK, then we just need to rename it (as part of this PR), both cmake references and a few that we have in GC code. For JIT renames, I'm now thinking it's actually better to do it after these changes, since it will defer the point when JIT code under that flag will start compiling, so they can deal with potential problems at that time (and fix as a part of their rename PR). |
btw, I'll mention this: eclipse-omr/omr#7513 |
4c9cad3
to
8e311c8
Compare
@@ -21,18 +21,19 @@ | |||
################################################################################ | |||
|
|||
#TODO: Env vars should be auto detected by platform | |||
# Prevent CMake from automatically creating export lists for shared libraries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps leave extra space after the TODO line, which I don't know what it really refers, but like this it looks like it refers to the next 'set' line only
perhaps we can even remove the TODO line!?
runtime/cmake/caches/win_x86.cmake
Outdated
@@ -24,6 +24,7 @@ set(J9VM_ARCH_X86 ON CACHE BOOL "") | |||
set(J9VM_ENV_DATA64 OFF CACHE BOOL "") | |||
set(J9VM_ENV_LITTLE_ENDIAN ON CACHE BOOL "") | |||
set(J9VM_ENV_SSE2_SUPPORT_DETECTION ON CACHE BOOL "") | |||
set(J9VM_GC_SPARSE_HEAP_ALLOCATION OFF CACHE BOOL "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a 64bit spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we set J9VM_GC_SPARSE_HEAP_ALLOCATION OFF instead of ON?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simplest is just remove the line - we did not update any other 32bit for offheap
8e311c8
to
fd2c3b7
Compare
new define J9VM_GC_SPARSE_HEAP_ALLOCATION for cmake build Signed-off-by: lhu <linhu@ca.ibm.com>
fd2c3b7
to
d78ca01
Compare
jenkins compile all jdk21 |
jenkins compile all jdk8 |
jenkins test sanity xLinux jdk21 |
set(CMAKE_XL_CreateExportList "" CACHE INTERNAL "") | ||
|
||
set(J9VM_GC_TLH_PREFETCH_FTA OFF CACHE BOOL "") | ||
set(J9VM_GC_SPARSE_HEAP_ALLOCATION ON CACHE BOOL "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan to change all the references in JIT code from J9VM_GC_ENABLE_SPARSE_HEAP_ALLOCATION
to J9VM_GC_SPARSE_HEAP_ALLOCATION
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. @rmnattas, apologies for the inconvenience, but please update the JIT references.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it also in the plan to update UMA builds to support this flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, about to merge that PR.
new define J9VM_GC_SPARSE_HEAP_ALLOCATION for cmake build