-
Notifications
You must be signed in to change notification settings - Fork 334
Verify EnsoContext can be GCed after cleaning up ContextUtils rule
#14219
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6738185
Verify context can be GCed after evaluation
JaroslavTulach d21d2fd
Cache EnsoMultiType instances per EnsoContext only
JaroslavTulach b9f1a97
Merge remote-tracking branch 'origin/develop' into wip/jtulach/Contex…
JaroslavTulach f2f638d
Let's make sure EnsoContext is garbage collected after each ContextUt…
JaroslavTulach c98bfc3
Separating the assertGC into own file
JaroslavTulach 11f1a28
Avoid stack frame reference to ensoContext to allow GC of EnsoContext
JaroslavTulach 7a1a95d
Dump .hprof file on out of memory errors
JaroslavTulach d8b80fe
Specify path to runtime-integration-tests/target/scala-2.13 directory
JaroslavTulach df08637
Try harder to process CleanableReference.QUEUE by creating new Context
JaroslavTulach 0cc51c3
Eventually give up on GCing
JaroslavTulach 1a63754
Don't hold EnsoContext via polyCtx
JaroslavTulach aa91c51
Allow to opt-out of assertGC check for ContextUtils
JaroslavTulach 09277b0
Introducing topScope() getter for simple access to TopScope
JaroslavTulach 7f4b17d
More tests that GC EnsoContext
JaroslavTulach 35014cb
Clean up local variables to allow GC of the EnsoContext
JaroslavTulach fc3401b
assertGC is on by default when used as @Rule only
JaroslavTulach be9a9bd
Try harder to GC after five unsuccessful System.gc() calls
JaroslavTulach 1addaa1
Clean Parameters when the test suite is over
JaroslavTulach e4a4ff2
Clean static state
JaroslavTulach 23dcbef
Cleanup static values @AfterClass
JaroslavTulach d09e293
Cleanup EnsoMultiValues when no longer used
JaroslavTulach bff788a
Explicitly enter/leave context when computing @Parameterized.Parameters
JaroslavTulach 235a5fb
Don't try to access context to assert GC in HelloWorldCacheTest
JaroslavTulach 56c1653
Disable assertGC in these @Parametrized tests as parameters are leaki…
JaroslavTulach e700394
Clean all OtherJvmPool data when closing a channel
JaroslavTulach daeb088
Manually used ContextUtils don't check assertGC anymore. Removing the…
JaroslavTulach 25314c5
= null no longer needed
JaroslavTulach 31c4c39
Making anyIr per ModuleContext constant again
JaroslavTulach 153dd0d
Even less = null assignments as assertGC is off for these cases now
JaroslavTulach 1b2cef2
assertGC(false) in jvm-interop tests
JaroslavTulach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
Update on Nov 6, 2025
Upload heapdumpstep to all JVM tests jobs #14251 you can download the.hproffile from GitHub Actions CIHow to Analyze Heap Dump
When a test fails because of
assertGC, then following message is printed:with that
.hproffile at hand, one can open it in VisualVM asand then
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.
The problem in previous picture shows a reference from
CleanableReference.QUEUE- that may go away eventually, but df08637 does its best to force the processing of theQUEUE.