… to SM. CanvasRenderingContext2D already uses associated_memory, but initial canvas memory was not reported after object reflection, and resize accounting only used pixel area instead of byte size. This caused SM to underestimate memory pressure for large canvas workloads, delaying GC and keeping old canvas resources alive. Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
Co-authored-by: Sam <16504129+sagudev@users.noreply.github.com> Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>