Closed
Bug 1694054
Opened 3 years ago
Closed 2 years ago
Add CompilationStencil::unshare
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: arai, Assigned: arai)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
CompilationStencil decoded from XDR buffer has pointer to the XDR buffer,
and if the XDR buffer has shorter lifetime than CompilationStencil,
CompilationStencil needs to copy all data out of XDR buffer.
Assignee | ||
Comment 1•3 years ago
|
||
Depends on D105157
Assignee | ||
Comment 2•3 years ago
|
||
To be clear, currently there's no consumer of unshare
in the patch stack.
it's possibly for ScriptPreloader/StartupCache usage, or later phase
Assignee | ||
Comment 3•3 years ago
|
||
maybe it's better adding public API and also jsapi-test
Updated•3 years ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Updated•3 years ago
|
Attachment #9204473 -
Attachment description: Bug 1694054 - Add CompilationStencil::unshare. → Bug 1694054 - Add CompilationStencil::unshare and JS::UnshareStencil. r?tcampbell!
Updated•3 years ago
|
Attachment #9204473 -
Attachment is obsolete: true
Assignee | ||
Comment 4•3 years ago
|
||
for XDR decode case, bug 1731629 will provide CompileOptions.borrowBuffer
that allows not borrowing the buffer when decoding,
so that there's no need to unshare
on the stencil.
See Also: → 1731629
Assignee | ||
Comment 5•2 years ago
|
||
so far we don't need unshare
method.
we have multiple similar methods for different purposes, such as steal
, cloneFrom
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•