Closed Bug 1844520 Opened 2 years ago Closed 2 years ago

Mark AutoEnterOOMUnsafeRegion::crash has a static function

Categories

(Core :: JavaScript Engine, task)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Otherwise -ftrivial-auto-var-init always initialize the empty class one byte because the object has its address taken by a method that does not need it.

Interestingly, this removes a reference to this which in turns unlocks
a few compiler optimization.

More specifically, -ftrivial-auto-var-init always initialize the empty
class with one byte because the object has its address taken by a method
that does not need it.

This patch removes the need for that class to have an address.

Assignee: nobody → sguelton
Status: NEW → ASSIGNED
Attachment #9344791 - Attachment description: Bug 1844520 - Mark AutoEnterOOMUnsafeRegion::crash as static r=nbp → Bug 1844520 - Forward AutoEnterOOMUnsafeRegion::crash to a static implementation r=nbp
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1dd2a590f9b8 Forward AutoEnterOOMUnsafeRegion::crash to a static implementation r=nbp
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: