Commit graph

38 commits

Author SHA1 Message Date
win7-7
e79cfc5a77 Revert part 5 also. It does depends on part 4.
Revert part 5 also. It does depends on part 4.
2026-08-01 03:13:05 +01:00
win7-7
fdba987b79 Trying adjust some functions. nsIEventTarget does not exists until later due xpcom changes that are not ported.
Trying adjust some functions. nsIEventTarget does not exists until later due xpcom changes that are not ported.
2026-08-01 03:07:33 +01:00
win7-7
436a8d5697 Part 4 could not suck more.
Part 4 could not suck more.

Sigh..

do_CreateInstance where was this defined so identifier is found..
2026-08-01 03:07:32 +01:00
win7-7
f109b02bc3 1325254 - optimize TimerThread data structures
1325254 P1 Make TimerThread::mTimers store RefPtr<nsTimerImpl> objects.

1325254 P2 Make TimerThread list store an entry struct and just drop nsTimerImpl ref on cancel.

1325254 P3 Sort TimerThread list as a binary heap.

1325254 P4 Dynamically allocate Entry structs stored in TimerThread::mTimers.

1325254 P5 Make nsITimer::Cancel() O(c).
2026-08-01 03:07:32 +01:00
win7-7
be3e4b917d Hmph.. another issue due needing 1325254 (which does not just work) or figuring out way get rid of Value.
Hmph.. another issue due needing 1325254 or figuring out way get rid of Value.
2026-08-01 03:07:32 +01:00
win7-7
c4bf9a7b32 1358476, add support for timeout when doing idle dispatch
Templates suck. I cannot make this work likely.
2026-08-01 03:07:31 +01:00
win7-7
5499c5f9a3 1311425 - Make requestIdleCallback aware of timeouts.
Prepare for handling several sources of idleness.

Make idle callbacks aware of nsITimers.

Add pref for how far into the timer queue.

1311425 - Avoid expiration timers when scheduling idle runnables.

review comment fix to ensure low priority timers aren't taken into account when calling NS_GetTimerDeadlineHintOnCurrentThread.
2026-08-01 03:07:31 +01:00
win7-7
464b839bbd 1366750 - Rename nsIIncrementalRunnable to nsIIdleRunnable
1366750 - Rename nsIIncrementalRunnable to nsIIdleRunnable.
2026-08-01 03:07:31 +01:00
wuggy
a2a4c62a9b Refactor PerformanceObserver to use hash tables for entry type validation and improve ThrottleInputStream state management 2026-04-26 11:13:27 -07:00
wuggy
854f39b4ab Finally finish with MinGW building (linking still has some issues shush) 2026-04-18 01:02:51 -07:00
wuggy
a5cf494890 Add support for compiling under MinGW + fix Windows compiling in general 2026-04-17 15:05:11 -07:00
Gerald Squelart
543e41f3ac Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder.
MozPromise::All sets up 'Then' lambdas on all sub-promises, each one
taking the resolve/reject object by value. Since this value will not be
used again in the lambda, it is safe to Move it, and from there
MozPromiseHolder::Resolve/Reject can also Move it again into the holder
storage, potentially saving two copies per Resolve/Reject. Also, once
all sub-promises have been resolved, the resolve-values can be Move'd
into the joining promise's Resolve function.
2023-11-24 17:02:54 +08:00
Moonchild
f1759b33ff Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from accessible, [root], tools, uriloader, widget, xpcom and
xpfe.
Resolves #1656
2023-05-05 23:00:05 +08:00
Moonchild
8bf892d728 [xpcom] remove incorrect assertion.
See https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2095#issuecomment-33796
2023-01-30 12:56:44 +08:00
Brian Smith
13fcc4a046 Issue #1829 - Revert "Issue #1751" 2022-05-04 09:40:24 +08:00
Moonchild
eaf9e756a0 Issue #21 - Remove remaining telemetry structs, callers and flags. 2022-04-28 10:33:44 +08:00
Moonchild
8d800b1cb0 Issue #21 - Remove Telemetry plumbing and fix build.
Note this won't give working applications. Requires FE changes and
additional js module changes (next part).
2022-04-28 10:25:48 +08:00
Moonchild
8751960d9a [XPCOM] xpcom Threadpool cleanup
Make sure thread locks are in place to guard accesses.
2022-04-10 22:58:37 +08:00
Moonchild
7de4e86727 [XPCOM] xpcom/threads misc cleanup 2022-04-10 22:57:27 +08:00
Moonchild
bd80099e2c [xpcom] Timer cleanup, assertions and comments. 2022-03-22 23:22:59 +08:00
roytam1
138137ddea Issue #unknown, change assignment method in nsThread::SetObserver() 2021-12-14 23:10:15 +08:00
roytam1
c72a393b93 Bug 1339588 - Part 1: Simplify nsTimerEvent::Cancel, since there's no need to release the nsTimerImpl itself. r=froydnj, a=dveditz 2021-12-14 23:10:15 +08:00
roytam1
eb0082ecaa backport Bug 1739421: Use kungFuDeathGrip when firing a timer r=bwc a=RyanVM 2021-12-14 23:10:14 +08:00
roytam1
44959f50f8 Bug 1724107, be more precise when counting the number of allocator users, r=KrisWright a=RyanVM 2021-09-16 10:22:59 +08:00
Moonchild
df94ccb22c Issue #1751 -- Remove XP_MACOSX conditionals and support files from /xpcom 2021-05-05 10:28:58 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild
8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
Matt A. Tobin
a0b7617ca0 Issue #1053 - Remove android support from xpcom/threads/nsThread.cpp
Forgot to save..
2020-02-27 07:31:07 +08:00
Matt A. Tobin
26403f20ac Issue #1053 - Remove android support from XPCOM 2020-02-27 07:31:05 +08:00
wolfbeast
fe9d8da299 Issue #1319 - Enable promise debugging only in DEBUG builds. 2020-01-17 09:17:13 +08:00
Nathan Froyd
f40a82f098 Kill newly-spawned threads if we're shutting down. 2019-09-06 23:49:48 +08:00
wolfbeast
769e5dad1e Remove AIX 1st party code OS checks, part 1
Issue #186
2019-04-04 20:26:39 +08:00
wolfbeast
8c8145e620 Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2019-02-16 00:12:32 +08:00
wolfbeast
1a823f5ad6 Remove SPS profiler.
- Conditionals and code blocks. (MOZ_ENABLE_PROFILER_SPS)
- Stub out several profiler-only functions.
2019-02-15 23:58:37 +08:00
wolfbeast
74df182488 Remove other gonk widget conditionals and unused files.
Tag #288.
2019-02-15 23:57:15 +08:00
wolfbeast
b586913598 Remove MOZ_WIDGET_GONK [1/2]
Tag #288
2019-02-15 23:57:08 +08:00
wolfbeast
434f3590e3 Remove base conditional code for crash reporter and injector. 2019-02-15 23:39:53 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00