Skip to content

Commit

Permalink
That wasn't a good change.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloWood committed Mar 29, 2021
1 parent e6b3ca6 commit 6dc0dd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions debugmalloc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ static memblk_map_ct* ST_memblk_map;

alloc_filter_ct const default_ooam_filter(0);

#if CWDEBUG_LOCATION
#if CWDEBUG_ALLOC
//=============================================================================
//
// The location_cache map:
Expand Down Expand Up @@ -1232,7 +1232,7 @@ void location_ct::handle_delayed_initialization(alloc_filter_ct const& filter)
M_pc_location(M_initialization_delayed LIBCWD_COMMA_TSD);
synchronize_with(filter);
}
#endif // CWDEBUG_LOCATION
#endif // CWDEBUG_ALLOC

static int WST_initialization_state; // MT-safe: We will reach state '1' the first call to malloc.
// We *assume* that the first call to malloc is before we reach
Expand Down
2 changes: 1 addition & 1 deletion include/libcwd/class_location.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class location_ct {
// This is used in list_allocations_on.
bool initialization_delayed() const { return (!M_object_file && (M_func == S_pre_ios_initialization_c || M_func == S_pre_libcwd_initialization_c)); }
void const* unknown_pc() const { return (!M_object_file && M_func == unknown_function_c) ? M_unknown_pc : initialization_delayed() ? M_initialization_delayed : 0; }
#if CWDEBUG_LOCATION
#if CWDEBUG_ALLOC
void handle_delayed_initialization(alloc_filter_ct const& filter);
bool hide_from_alloc_list() const { return M_hide == _private_::filtered_location; }
bool new_location() const { return M_hide == _private_::new_location; }
Expand Down

0 comments on commit 6dc0dd0

Please sign in to comment.