Gecko engine for Wine
Go to file
Jason Orendorff 6367a9c217 Automatically turn debug mode on/off when adding/removing debuggees.
This allows most of the tests to run without the -d command-line flag.

Now a compartment is in debug mode if
 * JSD1 wants debug mode on, thanks to a JS_SetDebugMode* call; OR
 * JSD2 wants debug mode on, because a live Debug object has a debuggee
   global in that compartment.

Since this patch only adds the second half of the rule, JSD1 should be
unaffected.

The new rule has three issues:

1. When removeDebuggee is called, it can cause debug mode to be turned
   off for a compartment. If any scripts from that compartment are on
   the stack, and the methodjit is enabled, returning to those stack
   frames will crash.

2. When a Debug object is GC'd, it can cause debug mode to be turned off
   for one or more compartments. This causes the same problem with
   returning to deleted methodjit code, but the fix is different: such
   Debug objects simply should not be GC'd.

3. Setting .enabled to false still does not turn off debug mode
   anywhere, so it does not reduce overhead as much as it should.

A possible fix for issue #1 would be to make such removeDebuggee calls
throw; a different possibility is to turn off debug mode but leave all
the scripts alone, accepting the performance loss (as we do for JSD1 in
JSCompartment::setDebugModeFromC).  The fix to issues #2 and #3 is to
tweak the rule--and to tweak the rule for Debug object GC-reachability.

--HG--
rename : js/src/jit-test/tests/debug/Debug-ctor.js => js/src/jit-test/tests/debug/Debug-ctor-01.js
2011-06-02 21:58:46 -05:00
accessible Bug 660742 accessible should use mozilla::Preferences r=roc+davidb 2011-06-03 15:01:02 +09:00
browser Bug 661823 - Ctrl+F shouldn't work to open Find toolbar in about:permissions and should work to close existing Find bar. r=gavin 2011-06-06 08:15:21 -07:00
build Bug 649965 - Remove inlines on Elf_*::swap functions. r=tglek 2011-06-03 01:21:07 +02:00
caps Bug 662126 - Audit ConfirmEx callers to ensure that aCheckState is not an uninitialized PRBool r=bz 2011-06-07 20:06:12 +02:00
chrome Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
config Bug 660762 - Remove --disable-mathml support. r=roc 2011-06-02 13:11:33 +02:00
content Bug 656519 - Fix consumers outside SpiderMonkey to use new ArrayBuffer APIs. r=mrbkap 2011-06-14 15:37:21 -04:00
db Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
dbm
docshell Backed out changeset 52b9e864be0e due to Bug 662200. 2011-06-05 16:21:42 -07:00
dom Bug 656519 - Fix consumers outside SpiderMonkey to use new ArrayBuffer APIs. r=mrbkap 2011-06-14 15:37:21 -04:00
editor Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
embedding bug 638940 - File Upload: we should not change file names, paths and extensions r=dougt 2011-06-01 20:40:38 -04:00
extensions Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
gfx Bug 656773 - Separate the process and the path in nsIMemoryReporter so that about:memory works in private browsing mode. r=sdwilsh, sr=roc. 2011-06-06 11:22:45 +10:00
intl Merging cedar with mozilla-central. 2011-06-03 12:06:08 +02:00
ipc Merge mozilla-central to tracemonkey. 2011-06-06 09:41:22 -07:00
jpeg
js Automatically turn debug mode on/off when adding/removing debuggees. 2011-06-02 21:58:46 -05:00
layout Bug 650691 - random-if the SVG object--auto reftests that are random-if(Android) 2011-06-04 22:20:52 -07:00
media
memory Bug 659632: Refactor memalign visiblity to use MOZ_MEMORY_ELF (r=respindola) 2011-05-26 06:58:10 -07:00
mfbt Add a RangedPtr constructor accepting an array as a shorthand for RangedPtr(arr, N). rs=luke 2011-06-07 13:25:36 -07:00
mobile Bug 645725 - Fix for mobile browser-chrome tests [r=mfinkle DONTBUILD] 2011-06-02 17:41:00 -07:00
modules Bug 656773 - Separate the process and the path in nsIMemoryReporter so that about:memory works in private browsing mode. r=sdwilsh, sr=roc. 2011-06-06 11:22:45 +10:00
netwerk Bug 661517 - nsWebSocketHandler.cpp fails to compile on mingw-w64 r=mcmanus DONTBUILD 2011-06-06 13:16:22 +02:00
nsprpub Update NSPR to NSPR_4_8_9_BETA3 which includes bug 661351 and bug 626035 2011-06-03 01:48:35 +02:00
other-licenses bug 660326 - send java exceptions to crash-stats r=dougt 2011-06-01 13:54:53 -04:00
parser Bug 660762 - Remove --disable-mathml support. r=roc 2011-06-02 13:11:33 +02:00
probes
profile
rdf Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
security Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
services Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
startupcache Bug 661305 - Check crc32 on omnijar startupcache entries, r=taras 2011-06-02 13:58:37 -07:00
storage Bug 656773 - Separate the process and the path in nsIMemoryReporter so that about:memory works in private browsing mode. r=sdwilsh, sr=roc. 2011-06-06 11:22:45 +10:00
testing merge m-c and b-s 2011-06-13 09:09:43 -04:00
toolkit Merge mozilla-central to tracemonkey. 2011-06-06 09:41:22 -07:00
tools Bug 660968: enabling jprof doesn't make it build the shared library anymore. r=khuey 2011-06-01 03:51:03 -04:00
uriloader Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
view Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
widget Merging cedar with mozilla-central. 2011-06-03 12:06:08 +02:00
xpcom Merge mozilla-central to tracemonkey. 2011-06-06 09:41:22 -07:00
xpfe Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
xpinstall Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
xulrunner Fix Mac universal xulrunner packaging for omnijar and appp update precomplete generation for Bug 653971 - Mac XULRunner packaging broken by bug 386760. r=nthomas, r=khuey 2011-06-03 20:42:39 -07:00
.hgignore
.hgtags Move UPDATE_PACKAGING_R14 tag to pick up bug 658094. DONTBUILD 2011-05-26 19:51:50 -04:00
aclocal.m4
allmakefiles.sh
client.mk Bug 641614 - Fix reordering of localized files in omnijar, r=ted 2011-06-10 17:54:01 -07:00
client.py
configure.in b=661145, r=bsmedberg Move the function declarations passed to AC_TRY_COMPILE out of the body of main. 2011-06-03 16:34:42 -04:00
LEGAL
LICENSE
Makefile.in
README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    http://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on http://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
            - or -
    http://nightly.mozilla.org/