rocksdb/cache
Levi Tamasi 22ff8c5af7 Use malloc/free for LRUHandle instead of new[]/delete[] (#10884)
Summary:
It's unsafe to call `malloc_usable_size` with an address not returned by a function from the `malloc` family (see https://github.com/facebook/rocksdb/issues/10798). The patch switches from using `new[]` / `delete[]` for `LRUHandle` to `malloc` / `free`.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10884

Test Plan: `make check`

Reviewed By: pdillinger

Differential Revision: D40738089

Pulled By: ltamasi

fbshipit-source-id: ac5583f88125fee49c314639be6b6df85937fbee
2022-10-27 15:39:29 -07:00
..
cache.cc
cache_bench.cc
cache_bench_tool.cc
cache_entry_roles.cc
cache_entry_roles.h
cache_entry_stats.h
cache_helpers.h
cache_key.cc
cache_key.h
cache_reservation_manager.cc
cache_reservation_manager.h
cache_reservation_manager_test.cc
cache_test.cc clang-format cache/ and util/ directories (#10867) 2022-10-26 12:08:20 -07:00
charged_cache.cc
charged_cache.h
clock_cache.cc Fix HyperClockCache Rollback bug in #10801 (#10843) 2022-10-21 12:09:03 -07:00
clock_cache.h Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
compressed_secondary_cache.cc
compressed_secondary_cache.h
compressed_secondary_cache_test.cc
fast_lru_cache.cc Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
fast_lru_cache.h clang-format cache/ and util/ directories (#10867) 2022-10-26 12:08:20 -07:00
lru_cache.cc Use malloc/free for LRUHandle instead of new[]/delete[] (#10884) 2022-10-27 15:39:29 -07:00
lru_cache.h Use malloc/free for LRUHandle instead of new[]/delete[] (#10884) 2022-10-27 15:39:29 -07:00
lru_cache_test.cc Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
sharded_cache.cc Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
sharded_cache.h Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00