Rafael Ávila de Espíndola
59b41e200e
Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron.
...
Currently we use dlsym on pthread_cond_wait$UNIX2003 to find a
function that indicates that new_sem_from_pool is on the stack. This
works on 10.5, but on 10.6 I could not find a single reliable
indicator that would work with dlsym.
The good news is that dladdr works with any symbol, not just exported
ones. To find the address of new_sem_from_pool, we set up a malloc logger
and force a call to new_sem_from_pool. From the logger callback we walk
the stack trying dladdr on every address.
To force a call to new_sem_from_pool, the initialization code has to be the
first to use semaphores, so it is now run from NS_LogInit.
This works on 10.6 and 10.5 (but we have to look for
"pthread_cond_wait$UNIX2003"). In 10.7 the call to malloc is gone, so we don't
have to worry about critical addresses on it anymore.
2011-12-02 19:26:04 -05:00
Chris Lord
a73ea11cf3
Backout bug 696376
...
This broke building on android due to requiring a newer version of unwind.h.
2011-12-02 18:00:58 +00:00
Rafael Ávila de Espíndola
b644e77f68
Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron.
...
Currently we use dlsym on pthread_cond_wait$UNIX2003 to find a
function that indicates that new_sem_from_pool is on the stack. This
works on 10.5, but on 10.6 I could not find a single reliable
indicator that would work with dlsym.
The good news is that dladdr works with any symbol, not just exported
ones. To find the address of new_sem_from_pool, we set up a malloc logger
and force a call to new_sem_from_pool. From the logger callback we walk
the stack trying dladdr on every address.
To for a call to new_sem_from_pool, the initialization code has to be the
first to use semaphores, so it is now run from NS_LogInit.
This works on 10.6 and 10.5 (but we have to look for
"pthread_cond_wait$UNIX2003"). In 10.7 the call to malloc is gone, so we don't
have to worry about critical addresses on it anymore.
2011-12-01 18:22:00 -05:00
Brian R. Bondy
9db1a10987
Bug 688881 - Buffer overflow fix in nsDirectoryService::GetCurrentProcessDirectory. r=ehsan
2011-11-28 18:59:20 -05:00
Terrence Cole
85273c86e9
Bug 699279 - Run GC_SHRINK collection cycle when under memory pressure; r=mrbkap
...
GC_SHRINK is a fairly new type of GC that does more aggressive cleanups than a
normal GC. This patch makes the browser run the GC in this mode when under
memory pressure, or when the user pushes the Minimize Memory Usage button when
on the about:memory page.
2011-11-09 18:14:11 -08:00
Rafael Ávila de Espíndola
05643ba9b5
Bug 705466 - Use MOZ_CHECK_HEADERS to check for cpuid.h. r=ted.
2011-11-28 15:32:32 -05:00
Nicholas Nethercote
c0681f567c
Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz.
2011-11-27 19:03:14 -08:00
Atul Aggarwal
2a17cafa83
Bug 686775 - Matching external API version of StripWhitespace with internal version by adding stripping of \b. r=bsmedberg
2011-11-06 20:22:02 +05:30
Bobby Holley
b89b73620c
Bug 692342 - Remove IsPointer() and IsReference() accessors and flag the bits as deprecated. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
db039c433a
Bug 692342 - Introduce deprecated_IsPointer() to handle the cases that are too mucky to figure out right now. r=mrbkap
2011-11-25 17:09:06 -08:00
Andrew McCreight
a7db681e24
Bug 668855, part 5: scan weak maps. r=gal
2011-11-24 07:35:57 -05:00
Andrew McCreight
7b8e4217ee
Bug 668855, part 4: store weak map info in CC data structure. r=gal
2011-11-24 07:35:56 -05:00
Andrew McCreight
ba739a8e81
Bug 668855, part 2: add nsCycleCollectionTraversalCallback hook for weak mappings. r=peterv
2011-11-24 07:35:56 -05:00
Ed Morley
36f603a1da
Merge mozilla-central and mozilla-inbound
2011-11-23 12:12:23 +00:00
Doug Turner
30d862c534
Bug 694325 - Backout of bfb56029f4bd due to crashes on android tablets. r=sworkman
2011-11-22 14:58:25 -08:00
Mike Hommey
8307d4543a
Bug 686466 part 3 - Use a pre-generated nsXREAppData struct instead of application.ini. r=ted,bsmedberg
2011-11-22 08:05:59 +01:00
Steve Workman
679d954712
Bug 694325: Add threadsafe getaddrinfo to libmozutils; restore multi-threading to nsHostResolver for DNS requests. r=mwu
2011-11-21 18:21:21 -08:00
Jeff Walden
a076867204
Bug 704127 - Implement MOZ_FINAL as a modifier for classes and virtual member functions. r=cjones
2011-11-20 22:21:16 -08:00
Benjamin Smedberg
1d45aa9aca
Add MOZ_CRASHREPORTER ifdefs to the patch for bug 429592. r=captain bustage
2011-11-04 15:13:58 -04:00
Benjamin Smedberg
f509b45b8f
Bug 429592 - Add a monitor thread for process hangs and crash by default if a chrome process doesn't end up back in the event loop for more than 30 seconds. By default this affects non-debug builds only. r=cjones/bent
2011-10-12 13:52:26 -04:00
Ginn Chen
5f2af3d919
Bug 702529 Add GetVsize and GetResident methods on Solaris r=khuey
2011-11-21 11:09:52 +08:00
Atul Aggarwal
b78c8dc3d1
Bug 691113 - Improving error thrown when ; is missing from interface definition; r=khuey
2011-11-20 11:13:40 +00:00
Atul Aggarwal
fecd23efb5
Bug 585099 - Emit adjacent consts in IDL files in the same enum in generated headers. r=ted
2011-11-16 18:13:32 +05:30
df50afb4e6
Bug 528569 - Storage stream's output stream should report itself as blocking. r=biesi
2011-11-19 12:53:57 +01:00
Lucas Molas
005f11e59d
Bug 680556 - Make NS_(Re)Alloc infallible. r=bsmedberg
2011-11-09 11:42:00 -05:00
Ed Morley
d316ea5a07
Merge mozilla-central and mozilla-inbound
2011-11-18 21:28:29 +00:00
Kyle Huey
89baa8c957
Fix Bug 700512. r=sicking,bsmedberg
2011-11-18 10:19:44 -05:00
Ed Morley
757aa41278
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-18 08:43:10 +00:00
Mark Finkle
d92235d134
Bug 703370 - Cleanup the console service logcat tag (sync with birch) [r=dougt]
2011-11-17 23:07:06 -05:00
Ed Morley
f457fec3c4
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-16 11:02:43 +00:00
Ms2ger
5318313e12
Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey
2011-11-16 08:50:19 +01:00
Doug Turner
2a7dcc06b3
Bug 702029 - Push all console logging to androids adb logcat. r=blassey
2011-11-14 19:12:20 -08:00
Olli Pettay
1ee8038765
Bug 702240 - [CC] Optimize sizeof nsPurpleBuffer::Block, r=mccr8
2011-11-14 18:10:06 +02:00
Michael Wu
e8583cb139
Bug 701875 - Rename omni.jar to omni.ja, r=ted
2011-11-12 19:58:19 -08:00
Marco Bonardo
561ec6b4fa
Merge mozilla-central and mozilla-inbound
2011-11-11 11:09:58 +01:00
Gregory Szorc
72d9af03b4
Merge b-s to m-c
2011-11-10 15:15:29 -08:00
Justin Lebar
83f2a4e66c
Bug 701210 - nsTArray::SizeOf() should use malloc_usable_size. r=roc
2011-11-09 20:40:09 -05:00
Ed Morley
04e1d73abe
Merge m-c to b-s.
2011-11-08 23:18:09 +00:00
Christian Legnitto
4d74988714
Bug 700688, Version bump
2011-11-08 09:12:57 -08:00
Ed Morley
d4a7ca1f7b
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-08 14:56:02 +00:00
Ed Morley
17e290456f
Backout 31d345404c98 (bug 671634) due to missing privacy review and necko peer review; a=dao
2011-11-08 10:43:36 +00:00
Octoploid
66ebe2d917
Bug 698264 - build fails because of undefined C++11 user-defined literals r=benjamin
2011-11-08 10:33:56 +01:00
d81ebea912
Bug 699780 - Redundant call to Seek() in nsStorageStream::GetOutputStream(); r=bsmedberg
2011-11-08 07:41:54 +00:00
Atul Aggarwal
5f7ec2bf38
Bug 630290 - Fixing compiler warnings. r=cjones
2011-11-06 21:15:44 +05:30
Geoff Lankow
9c1a701fe4
Bug 691551 - Suppress warnings when a bootstrapped add-on has no chrome.manifest; r=dtownsend
2011-11-04 10:59:24 +13:00
Ed Morley
0734c665d4
Merge mozilla-central to mozilla-inbound
2011-11-15 19:19:24 +00:00
Hugh Nougher
2a70b73e0c
Bug 702483 - Rename heap-committed-unallocated-fraction to heap-committed-fragmentation
2011-11-14 21:17:00 -05:00
Michael Wu
21ff4d9ef1
Bug 694206 - Add Gonk (B2G) widget backend, r=cjones
2011-11-10 16:17:46 -08:00
Gregory Szorc
ee16899cec
Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey
2011-11-01 15:45:23 -07:00
Andrew McCreight
a3a3456720
Bug 694436 - begin CC listener before BeginCollection. r=bent
2011-10-13 17:37:18 -07:00