servo/components
bors-servo bffe158fa4 Auto merge of #18455 - nnethercote:measure-Arc-Locked-properly, r=jdm
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 -->
2017-09-12 08:40:56 -05:00
..
atoms Do not NIH queueing a task to fire an event in htmlmediaelement 2017-09-04 16:14:04 +02:00
bluetooth Untry 2017-06-18 13:21:51 +02:00
bluetooth_traits Remove explicit dependencies on serde_derive 2017-06-16 13:58:21 +02:00
canvas Update rust-cssparser to 0.20.2. 2017-09-11 10:55:27 -04:00
canvas_traits Update rust-cssparser to 0.20.2. 2017-09-11 10:55:27 -04:00
compositing Update WR (mac driver crash, box shadow sharing). 2017-09-01 15:05:17 +10:00
config enable antialiasing by default 2017-08-29 17:50:26 +02:00
constellation Auto merge of #17083 - danielj41:javascript-url-global-3, r=jdm 2017-09-09 04:39:43 -05:00
debugger
deny_public_fields deny_public_fields: display field identifier in help message 2017-06-25 18:12:43 +01:00
devtools Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
devtools_traits order derivable traits lists 2017-08-23 21:38:44 +02:00
dom_struct Use the better TokenStream API in dom_struct 2017-09-01 12:15:12 +02:00
domobject_derive Fix quote dependency version 2017-08-23 18:35:42 +02:00
fallible fallible: Avoid using system malloc in servo. 2017-09-10 16:53:42 +02:00
geometry Bump serde to 1.0 2017-06-16 13:31:18 +02:00
gfx Auto merge of #18212 - mrobinson:position-sticky, r=emilio 2017-09-05 15:36:47 -05:00
gfx_traits order derivable traits lists 2017-08-23 21:38:44 +02:00
hashglobe hashglobe: Inline error constructor so we don't pay a function call even when there's no error. 2017-09-10 16:57:09 +02:00
jstraceable_derive Fix quote dependency version 2017-08-23 18:35:42 +02:00
layout Auto merge of #18212 - mrobinson:position-sticky, r=emilio 2017-09-05 15:36:47 -05:00
layout_thread style: Remove NODE_NEEDS_DIRTY_ON_VIEWPORT_SIZE_CHANGE. 2017-08-28 14:40:48 +02:00
layout_traits WR multi-document update 2017-07-28 22:28:11 -04:00
malloc_size_of Measure Arc<Locked<T>> fields properly. 2017-09-12 16:36:28 +10:00
malloc_size_of_derive Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
metrics Add paint metrics to Performance Timeline API 2017-08-23 17:30:13 +02:00
msg order derivable traits lists 2017-08-23 21:38:44 +02:00
net order derivable traits lists 2017-08-23 21:38:44 +02:00
net_traits order derivable traits lists 2017-08-23 21:38:44 +02:00
profile Make Performance Timeline API work in Workers 2017-09-05 17:07:15 +02:00
profile_traits Make Performance Timeline API work in Workers 2017-09-05 17:07:15 +02:00
rand
range order derivable traits lists 2017-08-23 21:38:44 +02:00
remutex order derivable traits lists 2017-08-23 21:38:44 +02:00
script Auto merge of #18446 - bzbarsky:update-cssparser, r=SimonSapin 2017-09-11 10:33:24 -05:00
script_layout_interface Update rust-cssparser to 0.20.2. 2017-09-11 10:55:27 -04:00
script_plugins Upgrade to rustc 1.21.0-nightly (7eeac1b81 2017-08-30) 2017-08-31 17:17:59 +02:00
script_traits Auto merge of #17083 - danielj41:javascript-url-global-3, r=jdm 2017-09-09 04:39:43 -05:00
selectors Overhaul MallocSizeOf and related things. 2017-09-12 12:37:51 +10:00
servo Update WR (font instance API). 2017-08-31 16:10:30 +10:00
servo_arc Measure selectors. 2017-09-07 15:01:11 +10:00
size_of_test
style Auto merge of #18455 - nnethercote:measure-Arc-Locked-properly, r=jdm 2017-09-12 08:40:56 -05:00
style_derive style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
style_traits Update rust-cssparser to 0.20.2. 2017-09-11 10:55:27 -04:00
url order derivable traits lists 2017-08-23 21:38:44 +02:00
webdriver_server Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
webvr Update rust-webvr to 0.8 2017-08-31 01:24:54 +02:00
webvr_traits Update rust-webvr to 0.8 2017-08-31 01:24:54 +02:00