summaryrefslogtreecommitdiff
path: root/includes/rts/storage/GC.h
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2020-12-08 15:44:35 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2021-02-02 08:57:08 +0000
commit823bf203630100f833809e4032ef655d25bcccf6 (patch)
treeca545b1ada83d7fca8233c49f9a9b4199fd043a1 /includes/rts/storage/GC.h
parent277f1dac759d9daab3f3bca1ef665b615ed05663 (diff)
downloadhaskell-wip/ghc-debug-ghc.tar.gz
Add generic block traversal functionwip/ghc-debug-ghc
Diffstat (limited to 'includes/rts/storage/GC.h')
-rw-r--r--includes/rts/storage/GC.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/rts/storage/GC.h b/includes/rts/storage/GC.h
index 6bc7157bd6..6acfd10cea 100644
--- a/includes/rts/storage/GC.h
+++ b/includes/rts/storage/GC.h
@@ -163,6 +163,9 @@ extern generation * generations;
extern generation * g0;
extern generation * oldest_gen;
+typedef void(*ListBlocksCb)(void *user, bdescr *);
+void listAllBlocks(ListBlocksCb cb, void *user);
+
/* -----------------------------------------------------------------------------
Generic allocation