Closed Bug 826143 Opened 12 years ago Closed 4 years ago

Shutdown by _exit(0) for faster shutdown

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1606879

People

(Reporter: espindola, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

No description provided.
Once bug 662444 is fixed, we should make some effort to find all cases that depend on exit being called (destructors, atexit functions, etc). If for some reason there are OS libraries that depend on exit being called, we should try to at least remove as many of our own destructors as we can from the fast shutdown path.
Keywords: perf
Summary: Shutdown by _exit(0) → Shutdown by _exit(0) for faster shutdown
Assignee: respindola → nobody
No assignee, updating the status.
Status: ASSIGNED → NEW

Chrome is changing its Windows process shutdown from using exit() to TerminateProcess() (to avoid running destructors for C++ global objects):

https://chromium-review.googlesource.com/c/chromium/src/+/2598043

(In reply to Chris Peterson [:cpeterson] from comment #6)

Chrome is changing its Windows process shutdown from using exit() to TerminateProcess() (to avoid running destructors for C++ global objects):

_exit also doesn't run destructors. (_exit != exit)

Bug 1606879 has more recent activity, so I'll dupe this over to that.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.