Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f1376d83 authored by Matt Buckley's avatar Matt Buckley
Browse files

Prevent session destruction on CanvasContext::destroy()

While sessions not getting destructed on CanvasContext::destroy()
was initially suspected as a culprit for a memory leak, there are many
cases where CanvasContexts are repeatedly destroyed then reused. This
caused excessive re-creation and prevented hints from being sent, since
hints can't send while waiting for the session, causing regression. The
session will ultimately get destroyed in CanvasContext's destructor, so
leaving these sessions active for the lifecycle of CanvasContext is
fine, especially since the session is usually getting reset before new
work comes in anyway.

Bug: 297604399
Test: uibench runs of regressed metrics
Change-Id: I209e40764d5bbcde85d709bccbc41f94f9c2ab49
Merged-In: I209e40764d5bbcde85d709bccbc41f94f9c2ab49
(cherry picked from commit 9f3654e6)
parent 071a9f92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment