Open Bug 1919241 Opened 11 months ago Updated 11 months ago

WASI recursion limit functions probably shouldn't be marked MOZ_COLD

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

People

(Reporter: jandem, Unassigned)

References

(Blocks 1 open bug)

Details

Julian was looking into behavior of lazy tiering on the WASI demo and some of these functions showed up as hot enough to be tiered up: CheckWasiRecursionLimit, IncWasiRecursionDepth, etc.

They're marked MOZ_COLD and that's probably why LLVM isn't inlining them.

Was there a reason for marking these MOZ_COLD in this change? IIUC these checks used to be always-inline.

Flags: needinfo?(arai.unmht)

I don't remember the reason, and it looks most likely a copy-paste artifact from ReportOverRecursed below, or something along that line.

anyway, I don't see any reason the cannot be inlined, and the MOZ_COLD annotation can be removed.

Flags: needinfo?(arai.unmht)
Blocks: sm-jits
Severity: -- → N/A
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.