From 0f0b0db5c0a418360fff95853a90019654df8829 Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Tue, 25 Sep 2007 19:53:15 +0000 Subject: Killing some more dead patches --- firefox-1.5-thread-cleanup.patch | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 firefox-1.5-thread-cleanup.patch (limited to 'firefox-1.5-thread-cleanup.patch') diff --git a/firefox-1.5-thread-cleanup.patch b/firefox-1.5-thread-cleanup.patch deleted file mode 100644 index cfa3873..0000000 --- a/firefox-1.5-thread-cleanup.patch +++ /dev/null @@ -1,28 +0,0 @@ -Index: mozilla/xpcom/threads/nsThread.cpp -=================================================================== -RCS file: /cvsroot/mozilla/xpcom/threads/nsThread.cpp,v -retrieving revision 1.58.4.2 -diff -u -r1.58.4.2 nsThread.cpp ---- mozilla/xpcom/threads/nsThread.cpp 1 Oct 2005 18:43:00 -0000 1.58.4.2 -+++ mozilla/xpcom/threads/nsThread.cpp 7 May 2007 19:10:58 -0000 -@@ -470,9 +470,17 @@ - nsThread::Shutdown() - { - if (gMainThread) { -- // XXX nspr doesn't seem to be calling the main thread's destructor -- // callback, so let's help it out: -- nsThread::Exit(NS_STATIC_CAST(nsThread*, gMainThread)); -+ // In most recent versions of NSPR the main thread's destructor -+ // callback will get called. -+ // In older versions of NSPR it will not get called, -+ // (unless we call PR_Cleanup). -+ // Because of that we: -+ // - call the function ourselves -+ // - set the data pointer to NULL to ensure the function will -+ // not get called again by NSPR -+ // The PR_SetThreadPrivate call does both of these. -+ // See also bugs 379550, 362768. -+ PR_SetThreadPrivate(kIThreadSelfIndex, NULL); - nsrefcnt cnt; - NS_RELEASE2(gMainThread, cnt); - NS_WARN_IF_FALSE(cnt == 0, "Main thread being held past XPCOM shutdown."); -- cgit