summaryrefslogtreecommitdiff
path: root/mallocx.c
diff options
context:
space:
mode:
Diffstat (limited to 'mallocx.c')
-rw-r--r--mallocx.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mallocx.c b/mallocx.c
index 29167eb9..f9376836 100644
--- a/mallocx.c
+++ b/mallocx.c
@@ -600,3 +600,24 @@ GC_API GC_ATTR_MALLOC char * GC_CALL GC_strndup(const char *str, size_t size)
return copy;
}
#endif /* GC_REQUIRE_WCSDUP */
+
+GC_API void * GC_CALL GC_malloc_stubborn(size_t lb)
+{
+ return GC_malloc(lb);
+}
+
+GC_API void GC_CALL GC_change_stubborn(const void *p GC_ATTR_UNUSED)
+{
+ /* Empty. */
+}
+
+#if defined(MANUAL_VDB)
+ void GC_dirty(ptr_t p);
+#endif
+
+GC_API void GC_CALL GC_end_stubborn_change(const void *p GC_ATTR_UNUSED)
+{
+# ifdef MANUAL_VDB
+ GC_dirty((ptr_t)p);
+# endif
+}