Skip to content

Commit

Permalink
Use a more portable way to access the configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 authored and davidchisnall committed Aug 23, 2022
1 parent a19ad55 commit f8efcb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snmalloc/override/malloc-extensions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ using namespace snmalloc;

void get_malloc_info_v1(malloc_info_v1* stats)
{
auto curr = StandardConfig::Backend::get_current_usage();
auto peak = StandardConfig::Backend::get_peak_usage();
auto curr = Alloc::Config::Backend::get_current_usage();
auto peak = Alloc::Config::Backend::get_peak_usage();
stats->current_memory_usage = curr;
stats->peak_memory_usage = peak;
}

0 comments on commit f8efcb7

Please sign in to comment.