gecko/tools
Rafael Ávila de Espíndola 561bf65f37 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.

--HG--
extra : rebase_source : bba4ac9e3378c88f7037aa884511e473a57121f6
2011-12-02 19:26:04 -05:00
..
codesighs bug 659950 - implement a much simpler pair of codesize metrics: on-disk application size + installer size. r=glandium 2011-06-28 07:55:56 -04:00
elf-dynstr-gc
footprint Bug 662403: Fix reftest-analyzer and leak-gauge to not use removed nsIDOMFile methods. r=bz 2011-06-07 10:03:02 -07:00
httptester
jprof Bug 693586: Add circular buffer support to jprof r=dbaron 2011-11-08 00:34:40 -05:00
l10n
leaky
memory
page-loader
performance Bug 579571 - Remove --enable-timeline support. r=tglek 2011-07-17 12:07:42 +02:00
profiler Bug 698002 - Initialize pthread keys on sps startup. r=jrmuizel 2011-12-01 17:40:33 -05:00
rb b=647469 continue after crashes in addr2line r=dbaron 2011-05-02 08:33:16 +12:00
relic Bug 584894 - Move libpng to media/libpng. r=khuey 2011-10-17 21:25:53 -07:00
reorder
test-harness/jssh-driver
tests
testy Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
trace-malloc Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron. 2011-12-02 19:26:04 -05:00
update-packaging Bug 658094 - Partial updates for 5.0b1 on Mac fail. r=nrthomas 2011-05-19 10:04:06 -07:00
uuiddeps