summaryrefslogtreecommitdiff
path: root/rts/Hpc.c
diff options
context:
space:
mode:
authornineonine <mail4chemik@gmail.com>2021-10-25 09:38:22 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-10 06:16:41 -0500
commitf573cb16debc5424e502b3777430c02ae6d0b475 (patch)
treedeb8abbab6a0ff0ab1df96a76a014d3d3017ccd1 /rts/Hpc.c
parent80a25502c1f9ac4597c9408931df1bf03cad5b9e (diff)
downloadhaskell-f573cb16debc5424e502b3777430c02ae6d0b475.tar.gz
rts: use allocation helpers from RtsUtils
Just a tiny cleanup inspired by the following comment: https://gitlab.haskell.org/ghc/ghc/-/issues/19437#note_334271 I was just getting familiar with rts code base so I thought might as well do this.
Diffstat (limited to 'rts/Hpc.c')
-rw-r--r--rts/Hpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Hpc.c b/rts/Hpc.c
index 7a9e42caed..edbad500c0 100644
--- a/rts/Hpc.c
+++ b/rts/Hpc.c
@@ -137,7 +137,7 @@ readTix(void) {
tmpModule -> hashNo = (unsigned int)expectWord64();
ws();
tmpModule -> tickCount = (int)expectWord64();
- tmpModule -> tixArr = (StgWord64 *)calloc(tmpModule->tickCount,sizeof(StgWord64));
+ tmpModule -> tixArr = (StgWord64 *)stgCallocBytes(tmpModule->tickCount,sizeof(StgWord64), "readTix");
ws();
expect('[');
ws();