Closed Bug 1689408 Opened 4 years ago Closed 4 years ago

Memory leak in GeckoTelemetryDelegate::DispatchHistogram

Categories

(GeckoView :: General, defect, P1)

Unspecified
Android

Tracking

(firefox84 wontfix, firefox85 wontfix, firefox86 fixed, firefox87 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
firefox84 --- wontfix
firefox85 --- wontfix
firefox86 --- fixed
firefox87 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [geckoview:m87])

Attachments

(1 file)

The JNI code copies the array, so we're just making and leaking a redundant copy of a nsTArray.

mozilla::jni::LongArray::New makes a copy of the array data. We were
allocating a nsTArray on the heap and then just leaking it.

Severity: -- → S2
Keywords: regression
Priority: -- → P1
Regressed by: 1566367
Whiteboard: [geckoview:m87]
Has Regression Range: --- → yes
Pushed by aklotz@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/274046da6b42 Fix a memory leak in GeckoTelemetryDelegate::DispatchHistogram; r=geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

Comment on attachment 9199840 [details]
Bug 1689408: Fix a memory leak in GeckoTelemetryDelegate::DispatchHistogram; r=#geckoview-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: Memory leaks
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial fix.
  • String changes made/needed:
Attachment #9199840 - Flags: approval-mozilla-beta?

Comment on attachment 9199840 [details]
Bug 1689408: Fix a memory leak in GeckoTelemetryDelegate::DispatchHistogram; r=#geckoview-reviewers

Approved for 86 beta, thanks.

Attachment #9199840 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: