Closed
Bug 489135
Opened 16 years ago
Closed 16 years ago
Lk increase due to bug 58904 (XPCOM should have nsLock strong type to match nsAutoLock)
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
VERIFIED
FIXED
mozilla1.9.2a1
People
(Reporter: standard8, Assigned: cjones)
References
Details
(Keywords: memory-leak, regression)
Attachments
(2 files, 1 obsolete file)
|
150.81 KB,
text/plain
|
Details | |
|
1.13 KB,
patch
|
Details | Diff | Splinter Review |
From the landing of bug 58904 there was an apparent leak regression on Tinderbox:
Linux and Windows: approx 4kB
Mac: hard to tell
http://graphs.mozilla.org/#show=1473418,1473670,1474269 date of regression is approx 19th April 2009 21:00
Attaching the diffbloatdump.pl output of the differences between the two builds (on Linux)
| Assignee | ||
Comment 1•16 years ago
|
||
There's only one bit of code that patch touched that's currently used anywhere. And, lo and behold, that bit of code allocates a PRMonitor that's not being freed (nsStringBundle).
Interestingly enough, nsStringBundle was leaking PRMonitors in the same way before. It was using a "cached monitor" that was never freed. Only now are we able to see that this memory leaks.
This is an easy one-liner fix. Coming up when I get it into work later.
| Assignee | ||
Updated•16 years ago
|
Assignee: nobody → jones.chris.g
Updated•16 years ago
|
Flags: blocking1.9.2?
| Assignee | ||
Comment 2•16 years ago
|
||
Attachment #373704 -
Flags: review?(benjamin)
| Assignee | ||
Comment 3•16 years ago
|
||
BTW, this isn't a regression --- this memory was already being leaked, but in a way that valgrind couldn't detect. Don't know if the keyword is all that important, so I'll leave it.
| Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 373704 [details] [diff] [review]
Fix pre-existing leak and uninit warning from valgrind
Whoops, this is in the intl module. Sorry Benjamin.
Attachment #373704 -
Flags: review?(benjamin) → review?(smontagu)
| Assignee | ||
Comment 5•16 years ago
|
||
smontagu, we should have had you review the nsStringBundle part of this patch: https://bugzilla.mozilla.org/attachment.cgi?id=373538&action=diff . It was quite straightforward: PRCMonitor has been summarily deprecated (no exceptions), so we replaced the PRCMonitor with PRMonitor.
Updated•16 years ago
|
Attachment #373704 -
Flags: review?(smontagu) → review+
| Assignee | ||
Comment 6•16 years ago
|
||
Attachment #373704 -
Attachment is obsolete: true
| Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 7•16 years ago
|
||
Comment on attachment 373741 [details] [diff] [review]
pushable changeset
[Checkin: Comment 7]
http://hg.mozilla.org/mozilla-central/rev/fbfbc1e04f4e
Attachment #373741 -
Attachment description: pushable changeset → pushable changeset
[Checkin: Comment 7]
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: blocking1.9.2? → wanted1.9.1?
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Bug 58904 won't land on branch and so neither should this.
Flags: wanted1.9.1?
Comment 9•16 years ago
|
||
(In reply to comment #8)
> Bug 58904 won't land on branch and so neither should this.
Ah, I must have wrongly assumed that comment 1 "before" included 1.9.1 :-<
| Assignee | ||
Comment 10•16 years ago
|
||
(In reply to comment #9)
> (In reply to comment #8)
> > Bug 58904 won't land on branch and so neither should this.
>
> Ah, I must have wrongly assumed that comment 1 "before" included 1.9.1 :-<
It does. But the patch in bug 58904 has so much other bleeding-edge crap that it shouldn't be backported.
I guess the previous leak wasn't all that big of a deal...
| Reporter | ||
Comment 11•16 years ago
|
||
Verified - the leaks went back down again. Thanks for fixing this.
(In reply to comment #10)
> I guess the previous leak wasn't all that big of a deal...
I just had a look through TB's trace malloc leak logs and couldn't find a PRMonitor leak logged on the 1.9.1 builds. As we saw it for this bug on trunk, I'd expect to see it in the 1.9.1. So either it wasn't a leak, or even trace malloc didn't pick it up.
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 12•16 years ago
|
||
(In reply to comment #11)
> (In reply to comment #10)
> > I guess the previous leak wasn't all that big of a deal...
>
> I just had a look through TB's trace malloc leak logs and couldn't find a
> PRMonitor leak logged on the 1.9.1 builds. As we saw it for this bug on trunk,
> I'd expect to see it in the 1.9.1. So either it wasn't a leak, or even trace
> malloc didn't pick it up.
Right. It was leaking in a way that leak detectors can't detect.
You need to log in
before you can comment on or make changes to this bug.
Description
•