📄 gc-brefs.c
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -