Closed Bug 1752209 Opened 3 years ago Closed 3 years ago

Put compilation target into the cache key in StartupCache/ScriptPreloader

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

Currently StartupCache and ScriptPreloader uses the modified URL (such as jsloader/non-syntactic/resource/gre/modules/MainProcessSingleton.jsm) as the cache key.

Technically, single script can be compiled as both regular script and module, and especially during the transition, this situation can happen.

To avoid mixing them up, we should put the compilation target (script or module) into the cache key.

Depends on: 1752212
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/8f10b666008a Put cahe type into the cache key in StartupCache/ScriptPreloader. r=nbp
Flags: needinfo?(arai.unmht)
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/4028e43ade5d Put cahe type into the cache key in StartupCache/ScriptPreloader. r=nbp
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: