Closed
Bug 1280648
Opened 8 years ago
Closed 8 years ago
Tracelogger: don't cache based on pointer to CompilerOptions
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: h4writer, Assigned: h4writer)
References
Details
Attachments
(1 file)
2.21 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
CompilerOptions pointer is not unique to the data we want to store. As a result we cannot use the pointer as an id for the cache. For now just allow to not cache it.
Assignee | ||
Comment 1•8 years ago
|
||
1) add a way to insert a textId to text without a key to cache the data 2) Don't cache the CompileOptions anymore, since the pointers are not unique! Note: I'm not entirely sure, but if a JSScript* can move we will also need to opt-out and create follow-up to clear the cache every time we move JSScripts. Not sure about the status. We have a Handle to JSScript, but also use raw JSScript pointers?
Assignee | ||
Comment 2•8 years ago
|
||
Sfink indicated that JSScript* is not movable and will be one of the last thing to get movable. So we are currently still safe. There is now also HashMaps that support the moving. We can possibly update our cache with that eventually.
Flags: needinfo?(terrence)
Updated•8 years ago
|
Attachment #8763249 -
Flags: review?(bbouvier) → review+
Comment 3•8 years ago
|
||
(In reply to Hannes Verschore [:h4writer] from comment #2) > Sfink indicated that JSScript* is not movable and will be one of the last > thing to get movable. So we are currently still safe. There is now also > HashMaps that support the moving. We can possibly update our cache with that > eventually. I don't think that's true - compacting GC can move scripts. See bug 1259180.
Pushed by hv1989@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7a942a270777 Tracelogger: Don't cache based on pointers to movable gc things, r=bbouvier
Assignee | ||
Comment 5•8 years ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #3) > (In reply to Hannes Verschore [:h4writer] from comment #2) > > Sfink indicated that JSScript* is not movable and will be one of the last > > thing to get movable. So we are currently still safe. There is now also > > HashMaps that support the moving. We can possibly update our cache with that > > eventually. > > I don't think that's true - compacting GC can move scripts. See bug 1259180. I also removed the caching for JSScript and opened bug 1281156 for using the cache again for JSScript.
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7a942a270777
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•