Closed Bug 1843965 Opened 2 years ago Closed 2 years ago

Do not trace ParseTask::compileStorage_

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

JS::CompilationStorage does not contain GC pointer, and it doesn't need trace.

https://searchfox.org/mozilla-central/rev/7a4c08f2c3a895c9dc064734ada320f920250c1f/js/src/vm/HelperThreadState.h#515-517,533

struct ParseTask : public mozilla::LinkedListElement<ParseTask>,
                   public JS::OffThreadToken,
                   public HelperThreadTask {
...
  JS::CompilationStorage compileStorage_;

https://searchfox.org/mozilla-central/rev/7a4c08f2c3a895c9dc064734ada320f920250c1f/js/src/vm/HelperThreads.cpp#558,563

void ParseTask::trace(JSTracer* trc) {
...
  compileStorage_.trace(trc);

https://searchfox.org/mozilla-central/rev/7a4c08f2c3a895c9dc064734ada320f920250c1f/js/public/experimental/CompileScript.h#104

JS_HAZ_NON_GC_POINTER js::frontend::CompilationInput* input_ = nullptr;
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: