diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-07-25 20:24:27 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-07-25 20:24:27 +0300 |
commit | 662e5b53bcfcd00353655b2ebfe5bbca53d65d30 (patch) | |
tree | 5a2f26f69b00b2c6d7d7ebeda198de3bd53f6195 /finalize.c | |
parent | 017bd0a6bbe6d3c5d404c265bf4700ec7abffa20 (diff) | |
download | bdwgc-662e5b53bcfcd00353655b2ebfe5bbca53d65d30.tar.gz |
Remove code commented out by 'ifdef UNDEFINED'
* finalize.c [UNDEFINED] (GC_invoke_finalizers): Remove
GC_free(curr_fo) call; update comment.
* include/private/gcconfig.h [UNDEFINED] (_etext, DATASTART): Remove.
* typd_mlc.c [UNDEFINED] (GC_make_complex_array_descriptor): Likewise.
Diffstat (limited to 'finalize.c')
-rw-r--r-- | finalize.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1198,12 +1198,9 @@ GC_API int GC_CALL GC_invoke_finalizers(void) curr_fo -> fo_client_data); curr_fo -> fo_client_data = 0; ++count; -# ifdef UNDEFINED - /* This is probably a bad idea. It throws off accounting if */ - /* nearly all objects are finalizable. O.w. it shouldn't */ - /* matter. */ - GC_free((void *)curr_fo); -# endif + /* Explicit freeing of curr_fo is probably a bad idea. */ + /* It throws off accounting if nearly all objects are */ + /* finalizable. Otherwise it should not matter. */ } /* bytes_freed_before is initialized whenever count != 0 */ if (count != 0 && bytes_freed_before != GC_bytes_freed) { |