File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ void GuardedPoolAllocator::init(const options::Options &Opts) {
52
52
Opts.MaxSimultaneousAllocations == 0 )
53
53
return ;
54
54
55
- Check (Opts.SampleRate >= 0 , " GWP-ASan Error: SampleRate is < 0." );
56
- Check (Opts.SampleRate < (1 << 30 ), " GWP-ASan Error: SampleRate is >= 2^30." );
57
- Check (Opts.MaxSimultaneousAllocations >= 0 ,
55
+ check (Opts.SampleRate >= 0 , " GWP-ASan Error: SampleRate is < 0." );
56
+ check (Opts.SampleRate < (1 << 30 ), " GWP-ASan Error: SampleRate is >= 2^30." );
57
+ check (Opts.MaxSimultaneousAllocations >= 0 ,
58
58
" GWP-ASan Error: MaxSimultaneousAllocations is < 0." );
59
59
60
- Check (SingletonPtr == nullptr ,
60
+ check (SingletonPtr == nullptr ,
61
61
" There's already a live GuardedPoolAllocator!" );
62
62
SingletonPtr = this ;
63
63
Backtrace = Opts.Backtrace ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ void die(const char *Message);
20
20
void dieWithErrorCode (const char *Message, int64_t ErrorCode);
21
21
22
22
// Checks that `Condition` is true, otherwise dies with `Message`.
23
- GWP_ASAN_ALWAYS_INLINE void Check (bool Condition, const char *Message) {
23
+ GWP_ASAN_ALWAYS_INLINE void check (bool Condition, const char *Message) {
24
24
if (GWP_ASAN_LIKELY (Condition))
25
25
return ;
26
26
die (Message);
You can’t perform that action at this time.
0 commit comments