diff options
author | Ben Gamari <ben@smart-cactus.org> | 2023-04-27 07:45:13 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-05-09 18:41:14 -0400 |
commit | b2cdb7dacc095142e29c0f28a956b7fa97cdb4b1 (patch) | |
tree | 30aab423cf7ec7adde72437e850e94a3e9248ac6 /rts/sm/Storage.c | |
parent | 6738c01d6175c5701e5c53e2ae6716d1103f7355 (diff) | |
download | haskell-b2cdb7dacc095142e29c0f28a956b7fa97cdb4b1.tar.gz |
nonmoving: Account for mutator allocations in bytes_allocated
Previously we failed to account direct mutator allocations into the
nonmoving heap against the mutator's allocation limit and
`cap->total_allocated`. This only manifests during CAF evaluation (since
we allocate the CAF's blackhole directly into the nonmoving heap).
Fixes #23312.
Diffstat (limited to 'rts/sm/Storage.c')
-rw-r--r-- | rts/sm/Storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c index 6d6500df9a..ec2f446a3f 100644 --- a/rts/sm/Storage.c +++ b/rts/sm/Storage.c @@ -966,7 +966,7 @@ move_STACK (StgStack *src, StgStack *dest) dest->sp = (StgPtr)dest->sp + diff; } -STATIC_INLINE void +void accountAllocation(Capability *cap, W_ n) { TICK_ALLOC_HEAP_NOCTR(WDS(n)); |