diff options
author | Cheng Shao <terrorjack@type.dance> | 2023-02-11 17:24:02 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-02-15 00:17:53 -0500 |
commit | 9ca51f9e84abc41ba590203d8bc8df8d6af86db2 (patch) | |
tree | 15920fff710ab7b5651f5728ea65dbcacd363016 /testsuite | |
parent | 79d8fd6581af62e72727337001029533bf55e64f (diff) | |
download | haskell-9ca51f9e84abc41ba590203d8bc8df8d6af86db2.tar.gz |
rts: add the rts_clearMemory function
This patch adds the rts_clearMemory function that does its best to
zero out unused RTS memory for a wasm backend use case. See the
comment above rts_clearMemory() prototype declaration for more
detailed explanation. Closes #22920.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/ffi/should_run/ffi023_c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/ffi/should_run/ffi023_c.c b/testsuite/tests/ffi/should_run/ffi023_c.c index a8a5a15447..979c378b7d 100644 --- a/testsuite/tests/ffi/should_run/ffi023_c.c +++ b/testsuite/tests/ffi/should_run/ffi023_c.c @@ -5,5 +5,6 @@ HsInt out (HsInt x) { performMajorGC(); + rts_clearMemory(); return incall(x); } |