-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[GR-42465] Reset JDKs cgroup metrics instances #5400
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
Conversation
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/Containers.java
Outdated
Show resolved
Hide resolved
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 @jerboaa !
c811085
to
d0a9565
Compare
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! |
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JDKContainerSubstitutions.java
Outdated
Show resolved
Hide resolved
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JDKContainerSubstitutions.java
Show resolved
Hide resolved
This is needed in order to get correct memory limits detected for some code paths (one of which is JFR). Reset containerMetrics and initializationTriggered static variables in JDKEvents class so as to not carry over build-time information to runtime. Similarly, reset RequestEngine.entries list to an empty list so that initialization doesn't re-add hooks added at build time. Closes: oracle#5396
d0a9565
to
a7ea29b
Compare
@fniephaus It's my understanding that |
Yup they seem to be working now. I'll update the task list. Thank you! |
@fniephaus Are there any other issues with this patch that aren't addressed, yet? Thanks! |
Thanks for resolving the open issue and for the delay. I've asked for another internal review and will merge this when all is well. |
Thanks for the heads-up! |
The PR is now in our merge queue. |
Thanks! |
This was merged via a01e8b7. |
Thanks! |
This is needed in order to get correct memory limits detected for some code paths (one of which is JFR).
Closes: #5396