Commit Graph

5 Commits

Author SHA1 Message Date
aquaThirsty
d808cc15d0 change #[allow]s to #[expect]s (#41635)
Changed most #[allow]s to #[expect]s, mainly for
clippy::too_many_arguments

Removed unfulfilled expectations

This is my first opensource contribution, so please let me know if
anything should
be done differently.

Testing: Refactor
Part of: #40838

---------

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
Signed-off-by: TimurBora <timurborisov5561@gmail.com>
Co-authored-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com>
2026-01-03 10:54:27 +00:00
Josh Matthews
eca27e0d08 allocator: Write untracked allocations to log file. (#41066)
The output is very large, so moving it away from stdout makes it easier
to write tools to process it.

Testing: No automated testing for optional low-level feature.

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-12-05 09:24:56 +00:00
Narfinger
2e950dfbf0 Allocator: Fix tracking allocator (#40270)
The tracking allocator was not compiling because of changes to the hash
function.
Additionally, I fixed some clippy lints in it.

Testing: Compiling it with allocation-tracking feature flag enabled
shows no errors now.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
2025-10-29 17:00:28 +00:00
Narfinger
d2c78db981 Moves to FxHashMap for Allocator, BHM, Canvas, Media, Servo, WebGL and WebGPU (#39202)
This moves more of HashMap/FnvHashMap to FxHashmap. Again we only
changed instances that do not look security related and have small keys.

Additionally, allocator used the fnv feature which did not seem to be
used.

Testing: Unit Tests and WPT should cover this and functionality change
is highly unlikely.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
2025-09-08 16:06:03 +00:00
Josh Matthews
f1a9ceed4f allocator: Add optional heap allocation measurement tracking. (#38727)
Add an off-by-default allocator mode that tracks all live allocations
with sizes and associated stack traces. We also track if each allocation
is visited as part of a measuring heap usage in `about:memory`, allowing
us to report on allocations that are not tracked yet. Right now the list
of untracked allocations is dumped to stdout; I have a python script
coming in a separate PR which makes it easier to perform analysis on the
massive output.

Testing: Manually tested with `./mach build -d --features
servo_allocator/allocation-tracking` and visiting about:memory.
Part of: #11559

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-08-19 18:49:27 +00:00