Skip to content

Commit 6dc0dd0

Browse files
committed
That wasn't a good change.
1 parent e6b3ca6 commit 6dc0dd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

debugmalloc.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ static memblk_map_ct* ST_memblk_map;
11201120

11211121
alloc_filter_ct const default_ooam_filter(0);
11221122

1123-
#if CWDEBUG_LOCATION
1123+
#if CWDEBUG_ALLOC
11241124
//=============================================================================
11251125
//
11261126
// The location_cache map:
@@ -1232,7 +1232,7 @@ void location_ct::handle_delayed_initialization(alloc_filter_ct const& filter)
12321232
M_pc_location(M_initialization_delayed LIBCWD_COMMA_TSD);
12331233
synchronize_with(filter);
12341234
}
1235-
#endif // CWDEBUG_LOCATION
1235+
#endif // CWDEBUG_ALLOC
12361236

12371237
static int WST_initialization_state; // MT-safe: We will reach state '1' the first call to malloc.
12381238
// We *assume* that the first call to malloc is before we reach

include/libcwd/class_location.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class location_ct {
232232
// This is used in list_allocations_on.
233233
bool initialization_delayed() const { return (!M_object_file && (M_func == S_pre_ios_initialization_c || M_func == S_pre_libcwd_initialization_c)); }
234234
void const* unknown_pc() const { return (!M_object_file && M_func == unknown_function_c) ? M_unknown_pc : initialization_delayed() ? M_initialization_delayed : 0; }
235-
#if CWDEBUG_LOCATION
235+
#if CWDEBUG_ALLOC
236236
void handle_delayed_initialization(alloc_filter_ct const& filter);
237237
bool hide_from_alloc_list() const { return M_hide == _private_::filtered_location; }
238238
bool new_location() const { return M_hide == _private_::new_location; }

0 commit comments

Comments
 (0)