mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
Measure Arc<Locked<T>> fields properly. Currently when we measure various Arc<Locked<T>> fields we don't measure the T itself, but only the descendants of the T. This patch fixes this. This fix requires introducing a new trait, MallocUnconditionalShallowSizeOf, which is implemented for servo_arc::Arc. A similar trait, MallocConditionalShallowSizeOf, is also introduced, though it has no uses as yet. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they are tested in Gecko. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18455) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
counter_style | ||
gecko | ||
gecko_bindings | ||
gecko_string_cache | ||
invalidation | ||
properties | ||
rule_tree | ||
servo | ||
sharing | ||
stylesheets | ||
values | ||
animation.rs | ||
applicable_declarations.rs | ||
attr.rs | ||
bezier.rs | ||
bloom.rs | ||
build.rs | ||
build_gecko.rs | ||
cache.rs | ||
Cargo.toml | ||
context.rs | ||
custom_properties.rs | ||
data.rs | ||
dom.rs | ||
driver.rs | ||
element_state.rs | ||
encoding_support.rs | ||
error_reporting.rs | ||
font_face.rs | ||
font_metrics.rs | ||
hash.rs | ||
lib.rs | ||
logical_geometry.rs | ||
macros.rs | ||
matching.rs | ||
media_queries.rs | ||
parallel.rs | ||
parser.rs | ||
README.md | ||
scoped_tls.rs | ||
selector_map.rs | ||
selector_parser.rs | ||
shared_lock.rs | ||
str.rs | ||
style_adjuster.rs | ||
style_resolver.rs | ||
stylesheet_set.rs | ||
stylist.rs | ||
thread_state.rs | ||
timer.rs | ||
traversal.rs | ||
traversal_flags.rs |