summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-01-31 09:17:30 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-01-31 17:27:51 +0300
commit1754cd484ea6ef1168134472adcca447b9246a48 (patch)
tree3ea916592c8683bbca0a8a9bc72159040caf3229 /tests
parentea1ef4200381182d158ae2f10c0ed65741201557 (diff)
downloadbdwgc-1754cd484ea6ef1168134472adcca447b9246a48.tar.gz
Do not mix debug/non-debug variants of explicitly-typed alloc in gctest
(fix of commit f55e46c34) * tests/gctest.c [!NO_TYPED_TEST] (typed_test): Call GC_MALLOC_EXPLICITLY_TYPED_IGNORE_OFF_PAGE() instead of GC_malloc_explicitly_typed_ignore_off_page().
Diffstat (limited to 'tests')
-rw-r--r--tests/gctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gctest.c b/tests/gctest.c
index 78995162..b2bbb96a 100644
--- a/tests/gctest.c
+++ b/tests/gctest.c
@@ -1295,7 +1295,7 @@ void typed_test(void)
if ((i & 0xff) != 0) {
newP = (GC_word*)GC_MALLOC_EXPLICITLY_TYPED(4 * sizeof(GC_word), d1);
} else {
- newP = (GC_word*)GC_malloc_explicitly_typed_ignore_off_page(
+ newP = (GC_word*)GC_MALLOC_EXPLICITLY_TYPED_IGNORE_OFF_PAGE(
4 * sizeof(GC_word), d1);
}
CHECK_OUT_OF_MEMORY(newP);