mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-19 19:36:33 +03:00
Fix typo in prof_log_rep_check: use != instead of || for alloc_count
The condition incorrectly used 'alloc_count || 0' which was likely a typo for 'alloc_count != 0'. While both evaluate similarly for the zero/non-zero case, the fix ensures consistency with bt_count and thr_count checks and uses the correct comparison operator.
This commit is contained in:
parent
d758349ca4
commit
a87c518bab
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ prof_log_rep_check(void) {
|
|||
size_t alloc_count = prof_log_alloc_count();
|
||||
|
||||
if (prof_logging_state == prof_logging_state_stopped) {
|
||||
if (bt_count != 0 || thr_count != 0 || alloc_count || 0) {
|
||||
if (bt_count != 0 || thr_count != 0 || alloc_count != 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue