diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-10-29 10:25:50 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-10-29 10:26:27 +0300 |
commit | 4a148cc6794ccd7fe7dcbc2b5664815f5fd0a4a7 (patch) | |
tree | 806eadbe6242623d71c158e5738f07767b44d5ae /mark_rts.c | |
parent | 3551cb9fcad19520f3b1d0759b43a518f6ddd697 (diff) | |
download | bdwgc-4a148cc6794ccd7fe7dcbc2b5664815f5fd0a4a7.tar.gz |
Enable GC_is_tmp_root for all platforms
* mark_rts.c [!NO_DEBUGGING] (GC_is_tmp_root): Define for any platform
(not only for Win32); update comment.
Diffstat (limited to 'mark_rts.c')
-rw-r--r-- | mark_rts.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -364,9 +364,8 @@ STATIC void GC_remove_tmp_roots(void) } #endif /* !defined(MSWIN32) && !defined(MSWINCE) && !defined(CYGWIN32) */ -#if (defined(MSWIN32) || defined(MSWINCE) || defined(CYGWIN32)) \ - && !defined(NO_DEBUGGING) - /* Not used at present (except for, may be, debugging purpose). */ +#if !defined(NO_DEBUGGING) + /* For the debugging purpose only. */ /* Workaround for the OS mapping and unmapping behind our back: */ /* Is the address p in one of the temporary static root sections? */ GC_API int GC_CALL GC_is_tmp_root(void *p) @@ -387,7 +386,7 @@ STATIC void GC_remove_tmp_roots(void) } return(FALSE); } -#endif /* MSWIN32 || MSWINCE || CYGWIN32 */ +#endif /* !NO_DEBUGGING */ GC_INNER ptr_t GC_approx_sp(void) { |