gecko-dev/xpcom
Peter Van der Beken 84814fdc97 Bug 1632759 - Remove unnecessary kungFuDeathGrip. r=erahm
The problem in https://bugzilla.mozilla.org/show_bug.cgi?id=325392 was
misdiagnosed and then a generic fix in
https://bugzilla.mozilla.org/show_bug.cgi?id=485834 (the kungFuDeathGrip
in nsObserverService::RemoveObserver) was based on the wrong diagnosis.
The root problem in bug 325392 was not that we were calling
nsObserverService::RemoveObserver from the destructor, and then
reentering the destructor. The refcounting code stabilizes the refcount
to 1 before calling the destructor to avoid reentering a destructor. The
real problem was that we were deleting an XPCOM object manually after
creation but without ever holding a strong reference to it, and so not
going through the refcount stabilization (and then the destructor can
reenter of course).

The generic fix in bug 485834 was based on the spotfix in bug 325392,
that was then backed out when the proper fix for that bug landed. I
don't think we should keep this kungfuDeathGrip, I ran into it because
it causes issues with refcount logging (refcount logging always had an
issue with refcounting from a destructor).

Differential Revision: https://phabricator.services.mozilla.com/D72300
2020-04-27 07:31:06 +00:00
..
base Bug 1633145 - Replace JSID_IS_GCTHING. r=arai 2020-04-26 17:03:01 +00:00
build Backed out 3 changesets (bug 1630655) for causing failures in test_headless_screenshot.html 2020-04-25 02:53:14 +03:00
components Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2020-04-06 14:28:50 +00:00
doc
ds Bug 1632759 - Remove unnecessary kungFuDeathGrip. r=erahm 2020-04-27 07:31:06 +00:00
glue Bug 1568994 - Add Update URL template to application.ini, XREAppData, and Services.appinfo r=glandium 2020-03-26 00:57:13 +00:00
idl-parser Bug 1621361 - Convert webidl to py3_action r=peterv 2020-04-24 16:17:26 +00:00
io Bug 1625749 - Make sure SlicedInputStream initializes all its members. r=nika 2020-04-14 18:04:13 +00:00
libxpt/xptcall
reflect Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj 2020-03-28 16:00:09 +00:00
rust Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio 2020-04-25 21:21:32 +00:00
string Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin 2020-04-24 13:31:14 +00:00
system Bug 1621116: Make the version and build ID of the previous instance of Firefox to use the current profile available. r=froydnj,glandium 2020-04-07 08:23:32 +00:00
tests Bug 1631671 - Skip test_nsIProcess.js as random on Android. a=fix 2020-04-24 13:07:52 -07:00
threads Bug 1619165 - Reformat recent changes to the Google coding style r=andi 2020-04-25 09:40:08 +00:00
windbgdlg
xpidl
moz.build
xpcom-config.h.in
xpcom-private.h.in