VM之GC篇(gc.h)
来源:互联网 发布:淘宝网店出售偷拍设备 编辑:程序博客网 时间:2024/05/16 16:14
从gc.h里面可以发现以下定义:
1.Turn on profiling(以后具体补充其作用)
#ifdef PROFILING_SUPPORTED
#define GC_PROFILING //Turn on profiling
#endif // PROFILING_SUPPORTED
2.Function Prototypes
/*
* Promotion Function Prototypes
*/
typedef void enum_func (Object*);
// callback functions for heap walkers
typedef void object_callback_func(void * pvContext, void * pvDataLoc);
// stub type to abstract a heap segment
struct gc_heap_segment_stub;
typedef gc_heap_segment_stub *segment_handle;
3.segment_info
struct segment_info
{
LPVOID pvMem; // base of the allocation, not the first object (must add ibFirstObject)
size_t ibFirstObject; // offset to the base of the first object in the segment
size_t ibAllocated; // limit of allocated memory in the segment (>= firstobject)
size_t ibCommit; // limit of committed memory in the segment (>= alllocated)
size_t ibReserved; // limit of reserved memory in the segment (>= commit)
};
/* forward declerations */
class CObjectHeader;
class Object;
4.大对象
/* misc defines */
#define LARGE_OBJECT_SIZE 85000
5.
- VM之GC篇(gc.h)
- GC之--HotSpot VM GC 的种类
- Minor GC,Major GC,Full GC -- hotspot VM GC讲解
- GC悲观策略之Parallel GC篇
- GC悲观策略之Serial GC篇
- GC悲观策略之Parallel GC篇
- GC悲观策略之Serial GC篇
- GC之--G1 GC
- gc()
- GC
- GC
- GC
- GC
- GC
- GC
- GC
- GC
- Gc
- QT信号与槽的机制
- C++何时才提供默认构造函数
- 对c++的认识
- automake/autoconf打包简单实例
- 子墨对酒《三国杀》里论模式(伍)模板方法
- VM之GC篇(gc.h)
- nyoj-453-小珂的烦恼
- android FrameWork家族是怎么组成的?
- C++ Primer 第二部分 理解和笔记
- printf的用法
- Qt qnamespace.h 中不包含Q_ENUMS(ItemDataRole),使得Qt::ItemDataRole无法在QtScript下使用,这里是一个Workaround。
- Flex调用js方法传递参数
- Microsoft Visual Studio 2010 使用方法
- hdu1760 A New Tetris Game 博弈,Dfs