Actions
Bug #16513
closedJVM GC cannot clean objects in scope in a for { } yield {} even if they are not referenced anymore
Status:
Released
Priority:
N/A
Assignee:
Category:
Performance and scalability
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:
Description
GC cannot garbage collect objects in a for yield, as long as they are in scope
We need to help it by putting them out of scope, or not referencing them anymore, or by returning smaller objects
see https://github.com/Normation/rudder/pull/2648/commits/e916e3ebe2c5d5b8299f2b0953b9739ebbe08f42 - it saves a full GB of memory during policy generation
Actions