377 Commits

Author SHA1 Message Date
sayrer%gmail.com
c76c7a86b5 Bug 401137. Silence ASSERTION: RefreshURIList timer callbacks should only be RefreshTimer objects. Docshell expects to be able to getCallback during a Timer fire. r=bzbarsky, sr=brendan, a=mconnor
git-svn-id: svn://10.0.0.236/trunk@238332 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-30 15:57:00 +00:00
sayrer%gmail.com
80d1692658 Bug 330128. Calling cancel() on a timer doesn't drop ref to the callback. r=brendan, sr=bzbarsky, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@238090 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-24 19:11:41 +00:00
benjamin%smedbergs.us
ab9a98a13e Bug 383553 - Crash on quit in nsTimerImpl::Release, r=dbaron sr=brendan
git-svn-id: svn://10.0.0.236/trunk@231713 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-09 18:37:02 +00:00
bzbarsky%mit.edu
828996fdac Try to fix orange: sGlobalObserver can get set during event processing, not
just unset.  Bug 326777


git-svn-id: svn://10.0.0.236/trunk@229659 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 03:01:56 +00:00
bzbarsky%mit.edu
f4d44ca58c Relanding bug 326777, r=bsmedberg, sr=jst
git-svn-id: svn://10.0.0.236/trunk@229650 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 00:57:17 +00:00
bzbarsky%mit.edu
eb3f2e8e52 Backing out to fix red
git-svn-id: svn://10.0.0.236/trunk@229585 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 04:07:45 +00:00
bzbarsky%mit.edu
9d50498a31 Make sure that we push a null JSContext on the current thread's XPConnect stack
before processing events.  Bug 326777, r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@229584 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 03:48:07 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
bzbarsky%mit.edu
3c646ad803 No need to enter the monitor in our destructor. Bug 371374 followup, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@221054 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-28 02:28:53 +00:00
bzbarsky%mit.edu
7a460332bb Fix leak when using XPCOM proxies. Bug 371374, patch by Bas Schouten
<bas.schouten@joost.com>, r=bsmedberg, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@220828 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-23 17:38:45 +00:00
bent.mozilla%gmail.com
6f800a615a Bug 366619 - "Move nsAutoLock and nsAutoMonitor to the glue". nsAutoLock.cpp and nsAutoLock.h were moved from xpcom/threads, see there for CVS history. r=bsmedberg.
git-svn-id: svn://10.0.0.236/trunk@218249 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-12 20:55:53 +00:00
graydon%mozilla.com
75bfd7865e Bug 333078: XPCOM cycle collector, first performance-related followup patch.
Reorganizes collection throttling to coincide with existing JS_GC scheme.


git-svn-id: svn://10.0.0.236/trunk@217799 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-05 01:44:42 +00:00
graydon%mozilla.com
3998c66e23 Bug 333078: XPCOM cycle collector
r=brendan, sicking, bz, dbaron, bsmedberg


git-svn-id: svn://10.0.0.236/trunk@217781 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-04 22:31:26 +00:00
vladimir%pobox.com
ece4ca3cad backing out bug 333078, xpcom cycle collector due to perf issues
git-svn-id: svn://10.0.0.236/trunk@215718 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 23:18:16 +00:00
vladimir%pobox.com
260a2b3959 b=333078, xpcom cycle collector -- patch from graydon@mozilla.com, r=many
git-svn-id: svn://10.0.0.236/trunk@215695 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 19:23:02 +00:00
redfive%acm.org
9c542e1a41 bug 357426 add static ctor/dtor PRLock methods via nsAutoLock ala. nsAutoMonitor
r=brendan
sr=jst


git-svn-id: svn://10.0.0.236/trunk@214214 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-27 00:57:14 +00:00
timeless%mozdev.org
b4b2f9fbd6 Bug 353280 nsThread::PushEventQueue leaks queue if !queue->IsInitialized (nsEventQueue::nsEventQueue() : mMonitor(nsAutoMonitor::NewMonitor("xpcom.eventqueue")) fails)
patch by darin r=timeless


git-svn-id: svn://10.0.0.236/trunk@213695 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-16 08:02:37 +00:00
timeless%mozdev.org
8f52b68bd9 Bug 342671 Leaking process information handle in nsProcessCommon.cpp
patch by David.R.Gardiner@gmail.com r=timeless r=dougt


git-svn-id: svn://10.0.0.236/trunk@212153 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-22 07:43:07 +00:00
martijn.martijn%gmail.com
c0a9ed3d0d Bug 323195 - XPCAutoUnlock messes with detection of potential deadlocks, patch by Matthew Gertner, r=brendan
git-svn-id: svn://10.0.0.236/trunk@206058 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-29 14:45:09 +00:00
darin%meer.net
5e4d710749 fixes bug 343731 "###!!! ASSERTION: QueryInterface needed: 'query_result.get() == mRawPtr', file ../../dist/include/xpcom/nsCOMPtr.h, line 594" r=biesi
git-svn-id: svn://10.0.0.236/trunk@201689 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 18:46:31 +00:00
darin%meer.net
8ef91351f5 fixes bug 333167 "remove idle timer / timer manager after bug 326273 is fixed" r=pavlov
git-svn-id: svn://10.0.0.236/trunk@201170 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-29 00:01:58 +00:00
mark%moxienet.com
b03f0316c3 340032 nsIThreadObserver needs a method called after processing an event to support Cocoa autorelease pools. r=darin sr=bryner
git-svn-id: svn://10.0.0.236/trunk@199172 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-07 00:06:11 +00:00
darin%meer.net
d93c71d2e1 Tidy up nsThreadManager::Shutdown per suggestion from roc (see bug 326273)
git-svn-id: svn://10.0.0.236/trunk@196286 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 01:24:57 +00:00
darin%meer.net
7198dc6224 fix vc6 bustage
git-svn-id: svn://10.0.0.236/trunk@196267 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 19:02:05 +00:00
darin%meer.net
be109f58b3 fixing uninitialized variable error in TimerThread::Init.
git-svn-id: svn://10.0.0.236/trunk@196266 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 18:30:57 +00:00
darin%meer.net
ee1fd28464 fix AIX bustage
git-svn-id: svn://10.0.0.236/trunk@196263 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 18:13:20 +00:00
darin%meer.net
8ace42165d fixing btek build bustage. making destructor public so it can be called
from a static destructor :(


git-svn-id: svn://10.0.0.236/trunk@196262 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 18:05:38 +00:00
darin%meer.net
3fbd9c42bf removing empty file (b=326273)
git-svn-id: svn://10.0.0.236/trunk@196257 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:33:01 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
benjamin%smedbergs.us
fdd88894d5 Bug 331012 - topcrash on exit [@timerthread::updatefilter] - r=darin
git-svn-id: svn://10.0.0.236/trunk@192697 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-21 14:46:35 +00:00
dougt%meer.net
b1bcf2f41e Cleaning up PR_GetEnv() usage. b=306840. r=timeless, patch by serge gautherie
git-svn-id: svn://10.0.0.236/trunk@192601 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-19 02:52:30 +00:00
masayuki%d-toybox.com
bbdc339af8 Bug 179056 "Check for new message every" stops after hibernate. patch by Masatoshi Kimura (emk) <VYV03354@nifty.ne.jp> r=emaijala+sfraser, sr=roc
git-svn-id: svn://10.0.0.236/trunk@191035 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 17:02:45 +00:00
bsmedberg%covad.net
307bdb2267 Bug 319999 - XPCOM Shutdown: xpcom-shutdown-threads notification and cleanup of event queues before component manager shutdown, r=darin
git-svn-id: svn://10.0.0.236/trunk@187710 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-17 15:41:40 +00:00
dbaron%dbaron.org
ea56e835a3 Make PL_InitEvent callers stop doing potentially dangerous casting of function pointers. b=305278 r=dougt sr=darin
git-svn-id: svn://10.0.0.236/trunk@184589 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-14 20:09:51 +00:00
dbaron%dbaron.org
80fa9406c3 Fix bad advice in comment on how to use PL_InitEvent. b=305278 r=dougt
git-svn-id: svn://10.0.0.236/trunk@184521 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-12 21:11:33 +00:00
bsmedberg%covad.net
0217e2f9a9 Bug 313309 part 2 - change the NS_DEFINE_STATIC_IID_ACCESSOR macro to NS_DECLARE, and make a NS_DEFINE_ macro that's outside the class declaration, r=shaver
git-svn-id: svn://10.0.0.236/trunk@184456 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-11 14:36:26 +00:00
bsmedberg%covad.net
112c33275c Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree.
git-svn-id: svn://10.0.0.236/trunk@184304 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-08 18:17:49 +00:00
bzbarsky%mit.edu
f09cef7db6 Make timers a little safer to use from JS. Bug 304669, patch by Giorgio Maone
<g.maone@informaction.com>, r=dougt, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@183373 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 00:46:37 +00:00
roc+%cs.cmu.edu
e766708159 Backing out fix for bug 303484 since it exposed some other issues and doesn't fix any known crashers.
git-svn-id: svn://10.0.0.236/trunk@182432 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 01:41:11 +00:00
timeless%mozdev.org
c3dbe0577a Bug 310487 thread leak
patch by colin@theblakes.com r=timeless sr=darin


git-svn-id: svn://10.0.0.236/trunk@181321 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-30 20:46:14 +00:00
bsmedberg%covad.net
221a40f564 Bug 307168 - Use the XPCOM (NS_COM) declarations for plevent symbols, instead of the NSPR declarations, since NSPR has different configure tests and compile flags r=darin
git-svn-id: svn://10.0.0.236/trunk@180304 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-15 18:29:21 +00:00
timeless%mozdev.org
74bc96ce3c Bug 308404 Access violation [@ ntdll!RtlDeleteCriticalSection+0x0000000f]
r=darin sr=darin


git-svn-id: svn://10.0.0.236/trunk@180221 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-14 18:18:43 +00:00
dougt%meer.net
8c4e2f1dda WinCE only. ShellExecute is now in the shunt lib, so I can remove a WINCE #define. Also, for process creation WinCE uses NSPR like a good child.... i wonder why the other platforms don't as well.
git-svn-id: svn://10.0.0.236/trunk@179552 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-02 18:00:23 +00:00
roc+%cs.cmu.edu
57bffe2488 Bug 303484. Limit the nesting of modal event loops so we avoid overflowing the C++ stack. r+sr=brendan,a=asa
git-svn-id: svn://10.0.0.236/trunk@177889 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 21:03:12 +00:00
dougt%meer.net
95ffcc4390 Disabling USE_TIMER on windows ce. posting directly to the message queue seams to be far more effective. a=asa. WINCE only change
git-svn-id: svn://10.0.0.236/trunk@176599 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 04:22:11 +00:00
joshmoz%gmail.com
269946319d part 2 of landing for bug 282940. actually make the switch to CFRunLoop. a=asa
git-svn-id: svn://10.0.0.236/trunk@174958 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-21 21:04:37 +00:00
joshmoz%gmail.com
fa3ae13981 part 1 of landing for bug 282940 (move FF and TB to CFRunLoop) - simply clean up old Mac OS classic code. a=asa
git-svn-id: svn://10.0.0.236/trunk@174954 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-21 20:43:11 +00:00
timeless%mozdev.org
733f8a76f0 Bug 296506 [@ nsThread::Main]
change Init to handle alloc failures and refuse multiple concurrent runs of a thread instance
r=dougt a=asa


git-svn-id: svn://10.0.0.236/trunk@174283 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-08 07:33:39 +00:00
bryner%brianryner.com
189a661d09 Add support for caching content viewers in session history to speed up back/forward (bug 274784). This initial landing has the feature disabled by default; set browser.sessionhistory.max_viewers to the maximum number of pages to cache to enable the feature. r=bzbarsky, sr/a=brendan.
git-svn-id: svn://10.0.0.236/trunk@173044 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-04 20:22:32 +00:00
timeless%mozdev.org
b6d91eeb64 Bug 291988 build warnings in plevent.c
patch by bugzilla@gemal.dk r=alecf sr=darin a=asa


git-svn-id: svn://10.0.0.236/trunk@172862 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-29 06:09:42 +00:00