mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix a memory leak in components/script/script_runtime.rs
and add more leak suppressions (#33175)
* asan: Add suppression for known false positive Signed-off-by: ede1998 <online@erik-hennig.me> * fix: re-suppress lazy_static leaks lazy_static is still used by dependencies and still leaks from static variables. Signed-off-by: ede1998 <online@erik-hennig.me> * fix: Memory leak of Box<NetworkingTaskSource> Signed-off-by: ede1998 <online@erik-hennig.me> --------- Signed-off-by: ede1998 <online@erik-hennig.me>
This commit is contained in:
parent
c028b5c299
commit
e5caa725da
2 changed files with 13 additions and 3 deletions
|
@ -1,5 +1,11 @@
|
|||
# intentional Box::leak, introduced here: https://github.com/servo/stylo/blob/f4cde5d89d03db92d111eaa4b4b34e622b6eecac/style/sharing/mod.rs#L481
|
||||
leak:style::sharing::SHARING_CACHE_KEY::__init
|
||||
# intentional Box::leak, introduced here: https://github.com/servo/stylo/blob/80292f83789ec9d0c66f73ee7e6e142f7478d167/style/bloom.rs#L22
|
||||
leak:style::bloom::BLOOM_KEY::__init
|
||||
|
||||
# std::sync::LazyLock never frees memory because it never runs destructors, see https://doc.rust-lang.org/std/sync/struct.LazyLock.html#examples
|
||||
leak:std::sync::LazyLock
|
||||
leak:std::sync::LazyLock
|
||||
|
||||
# lazy_static never frees memory because it never runs destructors, see https://docs.rs/lazy_static/1.4.0/lazy_static/index.html#semantics
|
||||
# Needed because transitive dependency are still using it
|
||||
leak:lazy_static::lazy::Lazy*::get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue