⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gc.c

📁 基于LWVCL开发的库
💻 C
字号:
/* * gc.c * The garbage collector. * * Copyright (c) 1996, 1997 *	Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license.terms" for information on usage and redistribution  * of this file.  *//* Use the incremental garbage collector */#include "config-std.h"#include "gc.h"#include "kaffe/jmalloc.h"Collector* main_collector;Collector* KGC_getMainCollector(void){	assert (main_collector != NULL);	return main_collector;}void*jmalloc(size_t sz){	return (KGC_malloc(main_collector, sz, KGC_ALLOC_FIXED));}void*jrealloc(void* mem, size_t sz){	return (KGC_realloc(main_collector, mem, sz, KGC_ALLOC_FIXED));}voidjfree(void* mem){	KGC_free(main_collector, mem);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -