Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6581 closed defect (fixed)

[PATCH] memory leak in svn_fs.py

Reported by: Daniel Wallin <daniel@…> Owned by: Jeroen Ruigrok van der Werven
Priority: high Milestone: 0.11
Component: version control Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

There's a reference cycle between SubversionRepository and RealSubversionAuthorizer that isn't collectable because of the __del__ method on SubversionRepository. The attached patch fixes the problem.

Attachments (1)

svn_fs.diff (492 bytes ) - added by Daniel Wallin <daniel@…> 17 years ago.

Download all attachments as: .zip

Change History (5)

by Daniel Wallin <daniel@…>, 17 years ago

Attachment: svn_fs.diff added

comment:1 by Christian Boos, 17 years ago

Description: modified (diff)
Milestone: 0.11
Priority: normalhigh

comment:2 by Jeroen Ruigrok van der Werven, 17 years ago

Committed in r6385.

Only just saw that you changed the ticket Christian, sorry, was not trying to get in the way.

comment:3 by Christian Boos, 17 years ago

Owner: changed from Christian Boos to Jeroen Ruigrok van der Werven

Yeah, I was about to test it… I just have to update now instead of patching the file, so it's not really getting in the way ;-)

I'll report back my findings.

comment:4 by Christian Boos, 17 years ago

Resolution: fixed
Status: newclosed

There are apparently no memory savings (no visible leak either) with or without, only high but stable memory usage, as usual.

When the repository gets explicitly close()d, this effectively frees the svn objects. The repository object itself might be leaked without the patch, but the impact of this is quite minor and I don't thinkg it explains the high memory usage we're seeing. But it's better to avoid that (probably very minor) leak anyway, so I'm closing the issue.

Anyway, for 0.12, the whole SvnAuthorizer stuff could be easily adapted to the security framework (no user visible changes, only an implementation detail).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jeroen Ruigrok van der Werven.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jeroen Ruigrok van der Werven to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.