[YANGTOOLS-1192] ModifierImpl leaks post buildEffective() Created: 01/Dec/20  Updated: 02/Dec/20  Resolved: 02/Dec/20

Status: Resolved
Project: yangtools
Component/s: parser
Affects Version/s: 4.0.14, 5.0.7, 6.0.1
Fix Version/s: 7.0.0, 5.0.8, 6.0.2, 4.0.15

Type: Bug Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2020-12-01-18-48-41-594.png     PNG File image-2020-12-01-19-02-17-575.png    
Issue Links:
Relates
relates to YANGTOOLS-1184 Release InferredStatementContext's ef... Resolved
Epic Link: Parser Performance

 Description   

Examining a reference benchmark's heap dump, the following is retained between when buildEffective() finishes and GlobalBuildContext is released:

Since inference has completed, there should be no outstanding actions: here we have some listeners still hanging in.



 Comments   
Comment by Robert Varga [ 01/Dec/20 ]

With the fixes retained objects are more sane:

cutting down ~330K objects (<1%).

Generated at Wed Feb 07 20:55:26 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.