]> granicus.if.org Git - gc/commit
Fix issues proposed in Ivan's previous commit, etc.
authorPetter Urkedal <paurkedal@gmail.com>
Tue, 13 Sep 2011 21:28:27 +0000 (23:28 +0200)
committerPetter Urkedal <paurkedal@gmail.com>
Mon, 19 Sep 2011 07:03:00 +0000 (09:03 +0200)
commit831e2f2123539ce464a1a8b4c328c9275db2b6da
tree8918abce1f32110591e39e02e95737d423eef3af
parent220e714d91c73d05658a2ecf7d24238cdb1c4e20
Fix issues proposed in Ivan's previous commit, etc.

* disclaim.c -> {finalized_mlc.c, misc.c}: Move low-level code to misc.c and
the finalized object-kind to finalized_mlc.c.
* Makefile.am: Update accordingly.
* reclaim.c: Condition #include "gc_disclaim.h" and remove "register".
* include/gc_disclaim.h, include/private/gc_priv.h, finalized_mlc.c, misc.c:
Add GC_API, GC_CALL, and GC_CALLBACK.  Use typedefs for function pointers.
* tests/disclaim_test.c, tests/disclaim_bench.c: Fix portability and other
issues.

* include/gc_disclaim.h: Forward declare ...
* finalized_mlc.c: ... and export GC_finalized_objfreelist.
* thread_local_alloc.c (GC_destroy_thread_local): Return finalized
freelists though the same global.
* include/private/thread_local_alloc.h: Tweak (move array above comment).

* Makefile.dj, NT_MAKEFILE, NT_STATIC_THREADS_MAKEFILE,
NT_X64_STATIC_THREADS_MAKEFILE, NT_X64_THREADS_MAKEFILE, gc.mak,
windows-untested/vc60/gc.dsp, windows-untested/vc70/gc.vcproj,
windows-untested/vc71/gc.vcproj: Add include/gc_disclaim.h to various build
systems.  (Untested.)
21 files changed:
Makefile.am
Makefile.direct
Makefile.dj
NT_MAKEFILE
NT_STATIC_THREADS_MAKEFILE
NT_X64_STATIC_THREADS_MAKEFILE
NT_X64_THREADS_MAKEFILE
finalized_mlc.c [moved from disclaim.c with 70% similarity]
gc.mak
include/gc_disclaim.h
include/include.am
include/private/gc_priv.h
include/private/thread_local_alloc.h
misc.c
reclaim.c
tests/disclaim_bench.c
tests/disclaim_test.c
thread_local_alloc.c
windows-untested/vc60/gc.dsp
windows-untested/vc70/gc.vcproj
windows-untested/vc71/gc.vcproj