Chromium Code Reviews
DescriptionAdapt upstream patches fixing potential deadlock in tcmalloc after fork.
This applies changes originally done in https://github.com/gperftools/gperftools/issues/499,
which fix a bug causing Chromium deadlock at startup on Linux about once per
100 launches. This is due to lock in tcmalloc after fork() which is done
in some libraries which Chromium depends on. For example, dbus contains this code:
https://cgit.freedesktop.org/dbus/dbus/tree/dbus/dbus-sysdeps-unix.c#n4243
Here opendir() calls malloc() inside while running between fork() and exec(),
leading to rare deadlock. Almost the same code is in glib:
https://github.com/GNOME/glib/blob/de04fd13048dd208162573187e4c0d9e7d3428d3/glib/gspawn.c#L1041
BUG=
R=wfh@chromium.org,jar@chromium.org
Patch Set 1 #Patch Set 2 : Updated README #
Messages
Total messages: 6 (1 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||