diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2020-01-24 00:24:03 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2020-01-24 00:48:56 +0300 |
commit | c404cb29d9835f46c6d33948a1464cd741516be0 (patch) | |
tree | 17a6d95842abafaa6d4c5c92f4ab6952016abda3 /include/gc.h | |
parent | e614036032b2cda52e2624bf5c7f223023d65d18 (diff) | |
download | bdwgc-c404cb29d9835f46c6d33948a1464cd741516be0.tar.gz |
Define GC_win32_free_heap API function for all Windows targets
Issue #302 (bdwgc).
The function now may be no-op on some targets.
* include/gc.h (GC_win32_free_heap): Refine comment (specify that it
is not always defined).
* os_dep.c [(MSWIN32 || MSWINCE || CYGWIN32) && !REDIRECT_MALLOC]
(GC_max_root_size): Do not define unless USE_WINALLOC.
* os_dep.c [(MSWIN32 || MSWINCE || CYGWIN32) && !REDIRECT_MALLOC]
(GC_is_heap_base): Do update GC_max_root_size value unless
USE_WINALLOC.
* os_dep.c [MSWIN32 || MSWINCE || MSWIN_XBOX1] (GC_win32_free_heap):
Define API function (regardless of USE_WINALLOC).
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && (MSWINCE
|| CYGWIN32)] (main): Call GC_win32_free_heap() before exit.
Diffstat (limited to 'include/gc.h')
-rw-r--r-- | include/gc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gc.h b/include/gc.h index 9a3a278f..54d76962 100644 --- a/include/gc.h +++ b/include/gc.h @@ -2070,8 +2070,8 @@ GC_API int GC_CALL GC_get_force_unmap_on_gcollect(void); GC_INIT_CONF_IGNORE_WARN; \ GC_INIT_CONF_INITIAL_HEAP_SIZE; } -/* win32S may not free all resources on process exit. */ -/* This explicitly deallocates the heap. */ +/* win32S may not free all resources on process exit. */ +/* This explicitly deallocates the heap. Defined only for Windows. */ GC_API void GC_CALL GC_win32_free_heap(void); #if defined(__SYMBIAN32__) |