gc-brefs.c

来自「java virtual machince kaffe」· C语言 代码 · 共 43 行

C
43
字号
/* gc-brefs.c * Boehm gc wrapper functions for KaffeGC reference implementation. * * Copyright (c) 2008 *      Dalibor Topic <robilad@kaffe.org> * * See the file "license.terms" for information on usage and redistribution  * of this file. (GPLv2 or any later version). */#include "gc.h"#include "gc-refs.h"#include "gc2.h"#include "gtypes.h"/** * Call KaffeGC_addRef with corrected object address. *  * @param collector the garbage collector * @param mem the object * * @return TRUE if a reference could be added, otherwise FALSE. */boolBoehmGC_addRef(Collector *collector, const void* mem){  return KaffeGC_addRef(collector, ALIGN_BACKWARD(mem));}/** * Call KaffeGC_rmRef with corrected object address.  * * @param collector the garbage collector * @param mem the object * * @return TRUE if a reference could be removed, otherwise FALSE. */boolBoehmGC_rmRef(Collector *collector, void* mem){  return KaffeGC_rmRef(collector, ALIGN_BACKWARD(mem));}

⌨️ 快捷键说明

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