llvm-project/compiler-rt/lib/scudo/standalone
Kostya Kortchinsky 8f18a4c980 [scudo][standalone] NFC corrections
Summary:
A few corrections:
- rename `TransferBatch::MaxCached` to `getMaxCached` to conform with
  the style guide;
- move `getBlockBegin` from `Chunk::` to `Allocator::`: I believe it
  was a fallacy to have this be a `Chunk` method, as chunks'
  relationship to backend blocks are up to the frontend allocator. It
  makes more sense now, particularly with regard to the offset. Update
  the associated chunk test as the method isn't available there
  anymore;
- add a forgotten `\n` to a log string;
- for `releaseToOs`, instead of starting at `1`, start at `0` and
  `continue` on `BatchClassId`: in the end it's identical but doesn't
  assume a particular class id for batches;
- change a `CHECK` to a `reportOutOfMemory`: it's a clearer message

Reviewers: hctim, morehouse, eugenis, vitalybuka

Reviewed By: hctim

Subscribers: delcypher, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D64570

llvm-svn: 365816
2019-07-11 19:55:53 +00:00
..
tests [scudo][standalone] NFC corrections 2019-07-11 19:55:53 +00:00
CMakeLists.txt [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
allocator_config.h [scudo][standalone] Introduce the combined allocator 2019-06-17 15:23:11 +00:00
atomic_helpers.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
bytemap.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
checksum.cc [scudo][standalone] Introduce the chunk header 2019-05-08 21:54:02 +00:00
checksum.h [scudo][standalone] Introduce the chunk header 2019-05-08 21:54:02 +00:00
chunk.h [scudo][standalone] NFC corrections 2019-07-11 19:55:53 +00:00
combined.h [scudo][standalone] NFC corrections 2019-07-11 19:55:53 +00:00
common.cc [scudo][standalone] Introduce platform specific code & mutexes 2019-02-26 16:47:25 +00:00
common.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
crc32_hw.cc [scudo][standalone] Implement checksumming functions 2019-03-12 14:46:31 +00:00
flags.cc [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
flags.h [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
flags.inc [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
flags_parser.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
flags_parser.h [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
fuchsia.cc [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
fuchsia.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
interface.h [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
internal_defs.h [scudo][standalone] Introduce the thread specific data structures 2019-06-10 16:50:52 +00:00
linux.cc [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
linux.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
list.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
local_cache.h [scudo][standalone] NFC corrections 2019-07-11 19:55:53 +00:00
mutex.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
platform.h
primary32.h [scudo][standalone] NFC corrections 2019-07-11 19:55:53 +00:00
primary64.h [scudo][standalone] NFC corrections 2019-07-11 19:55:53 +00:00
quarantine.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
release.h [scudo][standalone] Add the memory reclaiming mechanism 2019-04-30 14:56:18 +00:00
report.cc [scudo][standalone] NFC corrections 2019-07-11 19:55:53 +00:00
report.h [scudo][standalone] Add error reports 2019-03-20 14:31:23 +00:00
secondary.cc [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
secondary.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
size_class_map.h [scudo][standalone] Add the memory reclaiming mechanism 2019-04-30 14:56:18 +00:00
stats.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
string_utils.cc [scudo][standalone] Add string utility functions 2019-03-19 14:47:05 +00:00
string_utils.h [scudo][standalone] Add string utility functions 2019-03-19 14:47:05 +00:00
tsd.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
tsd_exclusive.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
tsd_shared.h [scudo][standalone] Merge Spin & Blocking mutex into a Hybrid one 2019-07-11 15:32:26 +00:00
vector.h [scudo][standalone] Add a standalone vector class 2019-02-27 16:30:05 +00:00
wrappers_c.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c.h [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c.inc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c_bionic.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c_checks.h [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_cpp.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00