diff options
author | Nicholas Nethercote <nnethercote@mozilla.com> | 2017-09-12 16:36:28 +1000 |
---|---|---|
committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2017-09-12 16:36:28 +1000 |
commit | 779fbda81d53a7243c254f845fc6a226a7f2a333 (patch) | |
tree | 438b6197cf56390d05021fd4604b01b14ea85376 /components/layout/sequential.rs | |
parent | 7f4cb1861b172423781a369b2decca6c65d60546 (diff) | |
download | servo-779fbda81d53a7243c254f845fc6a226a7f2a333.tar.gz servo-779fbda81d53a7243c254f845fc6a226a7f2a333.zip |
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.
Diffstat (limited to 'components/layout/sequential.rs')
0 files changed, 0 insertions, 0 deletions