Skip to content

Commit

Permalink
Matt's fix for slow-path codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf-msr committed May 22, 2024
1 parent b4eda93 commit 5ee6abf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/snmalloc/mem/localalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,12 @@ namespace snmalloc
return;
}

dealloc_remote(entry, p_tame);
}

SNMALLOC_SLOW_PATH void
dealloc_remote(const PagemapEntry& entry, capptr::Alloc<void> p_tame)
{
RemoteAllocator* remote = entry.get_remote();
if (SNMALLOC_LIKELY(remote != nullptr))
{
Expand All @@ -676,8 +682,8 @@ namespace snmalloc
# ifdef SNMALLOC_TRACING
message<1024>(
"Remote dealloc fast {} ({}, {})",
p_raw,
alloc_size(p_raw),
address_cast(p_tame),
alloc_size(p_tame.unsafe_ptr()),
address_cast(entry.get_slab_metadata()));
# endif
return;
Expand Down

0 comments on commit 5ee6abf

Please sign in to comment.