Skip to content

Commit

Permalink
fix Rust overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 committed Jun 11, 2024
1 parent 0f36585 commit 735adf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snmalloc/override/rust.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ extern "C" SNMALLOC_EXPORT void* SNMALLOC_NAME_MANGLE(rust_realloc)(
extern "C" SNMALLOC_EXPORT void SNMALLOC_NAME_MANGLE(rust_statistics)(
size_t* current_memory_usage, size_t* peak_memory_usage)
{
*current_memory_usage = StandardConfig::Backend::get_current_usage();
*peak_memory_usage = StandardConfig::Backend::get_peak_usage();
*current_memory_usage = Alloc::Config::Backend::get_current_usage();
*peak_memory_usage = Alloc::Config::Backend::get_peak_usage();
}

0 comments on commit 735adf3

Please sign in to comment.