Skip to content

pdfjs: Reset canvas_logs in tearDownPdfJS and call validate (#289) - #320

Open
camillobruni wants to merge 1 commit into
WebKit:mainfrom
camillobruni:2026-09-30_pdfjs_leak
Open

camillobruni wants to merge 1 commit into
WebKit:mainfrom
camillobruni:2026-09-30_pdfjs_leak

Conversation

@camillobruni

Copy link
Copy Markdown
Contributor

Reset the canvas_logs array in tearDownPdfJS to prevent accumulating logs across benchmark runs. Hook up validate() on class Benchmark so tearDownPdfJS() is executed at the end of the benchmark run to verify rendering output and allow GC of the canvas logs and global PDFJS state.

Fixes #289

Reset the canvas_logs array in tearDownPdfJS to prevent accumulating
logs across benchmark runs. Hook up validate() on class Benchmark
so tearDownPdfJS() is executed at the end of the benchmark run to verify
rendering output and allow GC of the canvas logs and global PDFJS state.

Fixes WebKit#289
@netlify

netlify Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit e2f6d32
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/6abd2404833ff50008dee8b9
😎 Deploy Preview https://deploy-preview-320--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@camillobruni

Copy link
Copy Markdown
Contributor Author
d8:           Baseline 104.5 ± 5.4 ➔ Patch 105.3 ± 4.3 (+0.8%)
jsc:          Baseline  84.9 ± 5.9 ➔ Patch  83.1 ± 4.0 (-2.1%)
spidermonkey: Baseline  92.0 ± 2.4 ➔ Patch  91.0 ± 3.8 (-1.1%)

@iainireland

Copy link
Copy Markdown
Contributor
d8:           Baseline 104.5 ± 5.4 ➔ Patch 105.3 ± 4.3 (+0.8%)
jsc:          Baseline  84.9 ± 5.9 ➔ Patch  83.1 ± 4.0 (-2.1%)
spidermonkey: Baseline  92.0 ± 2.4 ➔ Patch  91.0 ± 3.8 (-1.1%)

This looks like noise to me. No objections to this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

partial memory leak in pdfjs

2 participants