Closed Bug 1734625 Opened 3 years ago Closed 3 years ago

Add more diagnostic asserts for ScriptPreloader cache alignment

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox94 --- fixed
firefox95 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

No description provided.

bug 1734612 sounds like file corruption.
to verify that, add more assertion to ScriptPreloader::WriteCache.

If the crash in ScriptPreloader::InitCacheInternal still happens, it means the crash is caused by file corruption,
and in that case we should add fallback path to ignore the cache, instead of crashing.

Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/80adf467d998
Add more diagnostic asserts for ScriptPreloader cache alignment. r=nbp
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch

Comment on attachment 9244831 [details]
Bug 1734625 - Add more diagnostic asserts for ScriptPreloader cache alignment. r?nbp!

Beta/Release Uplift Approval Request

  • User impact if declined: This is diagnostic patch for bug 1734612, to check if the crash is caused by file corruption or not.
    This patch doesn't have testcase. we'll monitor the crash stats.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: Bug 1734624
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This adds release asserts that basically shouldn't hit unless there's data corruption.
    If these assertions don't hit and bug 1734612 crash keeps happening, it means there's file corruption and we'll handle it.
  • String changes made/needed:
Attachment #9244831 - Flags: approval-mozilla-beta?

Comment on attachment 9244831 [details]
Bug 1734625 - Add more diagnostic asserts for ScriptPreloader cache alignment. r?nbp!

Approved for 94.0b4.

Attachment #9244831 - 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: