Reading Gauche/Reading Gauche 0.9/gc/include/GC_INIT


Top / Reading Gauche / Reading Gauche 0.9 / gc / include / GC_INIT

GC_INIT()

概要

Linuxの場合、GC_init()を呼び出す。

/*
 * Fully portable code should call GC_INIT() from the main program
 * before making any other GC_ calls.  On most platforms this is a
 * no-op and the collector self-initializes.  But a number of platforms
 * make that too hard.
 * A GC_INIT call is required if the collector is built with THREAD_LOCAL_ALLOC
 * defined and the initial allocation call is not to GC_malloc() or
 * GC_malloc_atomic().
 */
#if defined(__CYGWIN32__) || defined (_AIX)
   /*
    * Similarly gnu-win32 DLLs need explicit initialization from
    * the main program, as does AIX.
    */
#   ifdef __CYGWIN32__
#     define GC_INIT() { GC_add_roots(GC_DATASTART, GC_DATAEND); \
			   GC_gcollect(); /* For blacklisting. */}
	/* Required at least if GC is in dll.  And doesn't hurt. */
#   endif
#   if defined(_AIX)
#     define GC_INIT() { GC_add_roots(GC_DATASTART, GC_DATAEND); }
#   endif
#else
#   define GC_INIT() { GC_init(); }
#endif

調べるもの

参照元

コメント

コメントはありません。 コメント/Reading Gauche/Reading Gauche 0.9/gc/include/GC_INIT?

お名前:

MENU

now: 4

リンク


最新の20件
2019-07-30 2019-06-20 2019-06-19 2019-03-24 2019-02-26 2018-10-07 2018-09-20 2017-09-29 2017-01-10 2016-12-11 2016-10-04 2016-08-14 2016-05-29 2015-12-28 2013-02-25 2013-02-21 2013-02-20
最新の20件
2010-02-01 2010-01-31 2010-01-30 2010-01-29 2010-01-16

Counter: 1309, today: 1, yesterday: 0

リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS

Last-modified: 2009-12-23 (水) 19:22:53 (3528d);  Modified by mona
PukiWiki 1.4.6 Copyright © 2001-2005 PukiWiki Developers Team. License is GPL.
Based on "PukiWiki" 1.3 by yu-ji
Powered by PHP 5.2.17
HTML convert time to 0.022 sec.