-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[GR-42460] Add support for CgroupMetrics.getTotalMemory0 #5390
[GR-42460] Add support for CgroupMetrics.getTotalMemory0 #5390
Conversation
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.
LGTM. Thank you @jerboaa
Note: This should also be backported to 22.3.1. |
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.
There are two style issues with the copyright.
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/CgroupMetricsJDK.java
Outdated
Show resolved
Hide resolved
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/HasGetTotalMemorySize0.java
Outdated
Show resolved
Hide resolved
Yes. Thanks for the review! |
f01f8d7
to
90d5c6b
Compare
Latest JDK code received an update to bound the reported container memory above by the total physical memory of the host running the container. Implement the same in GraalVM, only substituting the class/methods if they exist in the JDK. Closes oracle#5387
90d5c6b
to
3dcf7c7
Compare
@oubidar-Abderrahim can you please help us with assigning this PR to the right person? |
@fniephaus Could you please help us getting this integrated/reviewed? It's causing integration test failures on our end. |
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.
LGTM, thanks!
Thank you! |
Latest JDK code received an update to bound the
reported container memory above by the total physical memory
of the host running the container. See JDK-8292541
Implement the same in GraalVM, only substituting the class/methods
if they exist in the JDK.
Closes #5387