Commit Graph

11966 Commits

Author SHA1 Message Date
Gabriel Ivăncescu
1b847d364f
Export ccref_stabilize_for_deletion.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-08-31 19:13:23 +03:00
Gabriel Ivăncescu
db12aa07f8
Add should_delete argument to ccref_decr.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-08-30 18:14:48 +03:00
Gabriel Ivăncescu
2f405d211a
Expose CycleCollectFull in nsIDOMWindowUtils to force a full CC.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-08-29 19:08:01 +03:00
Gabriel Ivăncescu
1004e5f9fd
Restore nsIDOMProgressEvent XPCOM interface.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-06-28 15:46:06 +03:00
Jacek Caban
a76dd884fa xpcom/strings: Remove unused broken Assign variant from nsTString. 2020-11-30 13:44:54 +01:00
Jacek Caban
37ee45ba5f xptcall: Use gcc variant of stubs on llvm-mingw. 2020-11-26 12:49:48 +01:00
Tom Ritter
aef139a724 Bug 1490568 Quote the _PrepareAndDispatch symbol to fix the mingw-clang x86 build r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D6045
2020-11-25 20:17:09 +01:00
Tom Ritter
0b546a9b94 Bug 1491856 Change .scl 3 -> .scl 2 in the reflect assembly r=dmajor
As in Bug 1390583 and Bug 1470993, this will correct them to be external symbols

Differential Revision: https://phabricator.services.mozilla.com/D6044
2020-11-25 20:17:09 +01:00
Jacek Caban
7add7a10f2 Bug 1470993 - Fix reflect mingw clang compilation r=dmajor
MozReview-Commit-ID: 4al9Yid9prK
2020-11-25 17:42:23 +01:00
Vincent Povirk
c81598bb65 xpidl: Switch to nativeid mode after lparen.
Not sure why this worked before. Maybe older versions of ply would
consume whitespace before returning a token.
2019-09-06 15:43:23 +02:00
Vincent Povirk
7d2ed78187 xpidl: Remove use of cmp. 2019-09-06 15:43:22 +02:00
Vincent Povirk
6edff5869c xpt: Fixes for Python 3. 2019-09-06 15:43:22 +02:00
Vincent Povirk
7022410252 xpcom: Use a conditionally relative import.
This is required to make both the main and module case work.
2019-09-06 15:43:21 +02:00
Vincent Povirk
b938c2f47d xpt: Update for Python 3. 2019-09-06 15:43:20 +02:00
Vincent Povirk
d4a09714c5 Remove a relative import.
This breaks when executed by pythonpath.py. It might not work this
way either in all cases, but at least we'll learn something.
2019-09-06 15:43:17 +02:00
Vincent Povirk
11f98b1551 Run 2to3 on source tree. 2019-09-06 15:43:04 +02:00
Jacek Caban
5950bd2bd8 Merge tag 'FIREFOX_BETA_47_END' into wine-gecko-2.47 2016-06-13 15:32:36 +02:00
Jacek Caban
69ae59a699 Merge tag 'FIREFOX_BETA_47_BASE' into wine-gecko-2.47 2016-04-25 20:00:22 +02:00
Aaron Klotz
3300e98910 Bug 1258009: Move nsLocalFile::Launch back to the main thread on Win32, but pass SEE_MASK_ASYNCOK and a parent HWND; r=jimm a=ritu
This is as much a perf issue as it is a UX issue. We should be passing a HWND to
ShellExecuteEx because it can show UI, and that UI should have a proper
parent-child relationship with the Mozilla window. We should do that on the
main thread because of the GUI stuff. OTOH, we want the ShellExecuteEx call to
be a lightweight as possible, hence the SEE_MASK_ASYNCOK flag.

MozReview-Commit-ID: 7VLkWTRWPoe
2016-05-05 16:52:18 -06:00
Jacek Caban
cb8bf0787d Merge tag 'FIREFOX_AURORA_47_BASE' 2016-03-08 19:50:18 +01:00
Jacek Caban
10c61ad307 Merge branch 'mozilla-central' 2016-03-06 06:37:22 +01:00
Jacek Caban
8d90872877 Merge branch 'mozilla-central' 2016-03-04 06:38:14 +01:00
Jacek Caban
8a59f97641 Merge branch 'mozilla-central' 2016-03-03 06:19:08 +01:00
Nicholas Nethercote
c6fd8cf670 Bug 1253142 - Remove the long-deprecated nsIMemory.isLowMemory function. r=froydnj. 2016-03-06 21:07:51 +11:00
Doug Turner
f9a9bc2fbb Bug 1253159 - Remove locationUpdatePending and restore request timeout. r=jdm 2016-03-02 21:48:00 -05:00
Jacek Caban
e68f568a85 Merge branch 'mozilla-central' 2016-03-02 06:45:47 +01:00
Jacek Caban
fb4fc2cfb1 Merge branch 'mozilla-central' 2016-03-01 06:21:23 +01:00
Jacek Caban
a15120f43e Merge branch 'mozilla-central' 2016-02-27 06:32:27 +01:00
Jacek Caban
1510f4dbb6 Merge branch 'mozilla-central' 2016-02-26 17:11:14 +01:00
Jacek Caban
6b587ffb31 Merge branch 'mozilla-central' 2016-02-25 06:29:24 +01:00
Jacek Caban
84b9cd8ab4 Merge branch 'mozilla-central' 2016-02-23 11:33:09 +01:00
Nicholas Nethercote
436ae75378 Bug 1249174 (part 8) - Shrink XPTInterfaceDescriptor. r=khuey.
XPTInterfaceDescriptor::num_additional_types can easily fit in 8 bits -- in
practice it doesn't exceed 20, and there's already a check in DoTypeDescriptor
that it doesn't exceed 255. This patch shrinks it and moves that check into
XPT_InterfaceDescriptorAddTypes() so that any overflow would be detected more
reliably.

On 64-bit platforms this reduces sizeof(XPTInterfaceDescriptor) from 40 to 32
and correspondingly reduces "xpti-working-set" by 16 KiB.

The patch also changes XPT_InterfaceDescriptorAddTypes() into a local function,
because it's defined and only used in xpt_struct.cpp.
2016-02-23 16:17:59 +11:00
Nicholas Nethercote
73e04acda1 Bug 1249174 (part 7.5) - Avoid wasted space around XPT strings. r=khuey.
This patch:

- Removes XPTArena's ability to support arbitrary alignments.

- Hardwires two sub-arenas into XPTArena, one with alignment of 8 and one with
  alignment of 1.

- Uses the first sub-arena for most allocations and the second sub-arena for C
  string allocations.

These changes reduce "xpti-working-set" by 56 KiB.

The patch also renames all the used of "malloc" in XPT identifiers with
"calloc", to make clearer that the result is always zeroed.
2016-02-23 16:17:58 +11:00
Nicholas Nethercote
e033aa8bf1 Bug 1249174 (part 6) - Shrink XPTTypeDescriptor. r=khuey.
With careful layout we can reduce sizeof(XPTTypeDescriptor) from 4 to 3, which
also reduces sizeof(XPTParamDescriptor) from 6 to 4. This reduces
"xpti-working-set" by 16 KiB.

The union-of-structs also improves readability by making it clearer exactly
which fields are used for which types.
2016-02-23 16:17:44 +11:00
Nicholas Nethercote
d10f654e44 Bug 1249174 (part 5) - Remove the useless BLK_HDR::size field. r=khuey. 2016-02-23 05:34:33 +11:00
Nicholas Nethercote
91a4be71aa Bug 1249174 (part 4) - Don't store unused XPTHeader fields in memory. r=khuey.
This requires merging XPT_DoHeaderPrologue() and XPT_DoHeader(), which is
straightforward.

This reduces "xpti-working-set" by 16 KiB on 64-bit platforms.
2016-02-23 05:33:35 +11:00
Nicholas Nethercote
067322c671 Bug 1249174 (part 3) - Don't store the unused XPTInterfaceDirectoryEntry::name_space field in memory. r=khuey.
Removing it reduces the "xpti-working-set" measurement by 16 KiB (measured on
64-bit).
2016-02-23 05:33:35 +11:00
Nicholas Nethercote
7c18c5d9da Bug 1249503 - Make WindowsAddressSpaceReporter bloat memory reports less. r=erahm.
The WindowsAddressSpaceReporter generates one memory report per segment, and
there can be 10,000+ segments.

This patch changes things so that one memory report is generated per segment
*kind* -- at most a couple of dozen -- rather than one per *segment*.
2016-02-23 18:39:24 +11:00
Bogdan Postelnicu
ae2972e05b Bug 1021151 - avoid memory leak in NS_GENERIC_AGGREGATED_CONSTRUCTOR_INIT, use nsAutoPtr instead of naked ptr. r=Ehsan
MozReview-Commit-ID: 6iU7ikbgjEn
2016-02-23 14:12:22 +02:00
Nicholas Nethercote
7a8d91d815 Bug 1249174 (part 2) - Shrink xptiInterfaceEntry by reordering its fields. r=khuey.
This reduces "xpti-working-set" by another 16 KiB on 64-bit.
2016-02-17 15:23:46 +11:00
Nicholas Nethercote
25dcc731f8 Bug 1249174 (part 1) - Don't store the unused XPTTypeDescriptorTags::argnum2 field in memory. r=khuey.
XPTTypeDescriptor::argnum2 is unused. Removing it reduces
sizeof(XPTTypeDescriptor) from 6 bytes to 4 bytes, which reduces the
"xpti-working-set" measurement by 80 KiB (measured on 64-bit).
2016-02-17 15:23:42 +11:00
Jacek Caban
77d66438f9 Merge branch 'mozilla-central' 2016-02-16 13:32:14 +01:00
Jacek Caban
33db3dfa02 Merge branch 'mozilla-central' 2016-02-16 10:38:25 +01:00
Ms2ger
6cf681892b Bug 1252095 - Export xpcom-config.h from moz.build; r=ted 2016-03-01 09:17:29 +01:00
Jacek Caban
92700462f0 Merge branch 'mozilla-central' 2016-02-13 18:04:39 +01:00
ISHIKAWA, Chiaki
3716397205 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Carsten "Tomcat" Book
800fb9471d merge mozilla-inbound to mozilla-central a=merge 2016-02-12 15:15:17 +01:00
Jacek Caban
5a21c5f162 Merge branch 'mozilla-central' 2016-02-12 06:46:38 +01:00
Chris Pearce
ec8ae44bbe Bug 1245789 - Make XPCOMThreadWrapper::GetCurrent() work. r=bholley,a=ritu
XPCOMThreadWrapper::GetCurrent() is failing because it's not keeping
AbstractThread::sCurrentThreadTLS up to date. This causes assertion failures
during startup of the GMP stack when dispatching via InvokeAsync to the GMP
thread, which is an XPCOM thread wrapped by the XPCOMThreadWrapper.

We can trivially initialize AbstractThread::sCurrentThreadTLS to be the
XPCOMThreadWrapper on the target thread, since it's thread-local-storage, and
the target thread won't change.

MozReview-Commit-ID: EIEFZppR2PS
2016-04-12 16:12:22 +12:00
Tobias Schneider
d9f822bff9 Bug 1237198 - [experiment] Block SWFs on the content blocking list hosted on the Shavar service 0.6.9 r=francois a=ritu
MozReview-Commit-ID: 7Zgdjph7wN3
2016-04-06 16:34:08 -07:00