当前位置: 首页>>代码示例>>C++>>正文


C++ G1CollectedHeap::barrier_set方法代码示例

本文整理汇总了C++中G1CollectedHeap::barrier_set方法的典型用法代码示例。如果您正苦于以下问题:C++ G1CollectedHeap::barrier_set方法的具体用法?C++ G1CollectedHeap::barrier_set怎么用?C++ G1CollectedHeap::barrier_set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在G1CollectedHeap的用法示例。


在下文中一共展示了G1CollectedHeap::barrier_set方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: VerifyLiveClosure

 // use_prev_marking == true  -> use "prev" marking information,
 // use_prev_marking == false -> use "next" marking information
 VerifyLiveClosure(G1CollectedHeap* g1h, bool use_prev_marking) :
   _g1h(g1h), _bs(NULL), _containing_obj(NULL),
   _failures(false), _n_failures(0), _use_prev_marking(use_prev_marking)
 {
   BarrierSet* bs = _g1h->barrier_set();
   if (bs->is_a(BarrierSet::CardTableModRef))
     _bs = (CardTableModRefBS*)bs;
 }
开发者ID:BaHbKaTX,项目名称:openjdk,代码行数:10,代码来源:heapRegion.cpp

示例2: VerifyLiveClosure

 // _vo == UsePrevMarking -> use "prev" marking information,
 // _vo == UseNextMarking -> use "next" marking information,
 // _vo == UseMarkWord    -> use mark word from object header.
 VerifyLiveClosure(G1CollectedHeap* g1h, VerifyOption vo) :
   _g1h(g1h), _bs(NULL), _containing_obj(NULL),
   _failures(false), _n_failures(0), _vo(vo)
 {
   BarrierSet* bs = _g1h->barrier_set();
   if (bs->is_a(BarrierSet::CardTableModRef))
     _bs = (CardTableModRefBS*)bs;
 }
开发者ID:BunnyWei,项目名称:truffle-llvmir,代码行数:11,代码来源:heapRegion.cpp

示例3: ScanRSClosure

 ScanRSClosure(OopsInHeapRegionClosure* oc, int worker_i) :
   _oc(oc),
   _cards(0),
   _cards_done(0),
   _worker_i(worker_i),
   _try_claimed(false)
 {
   _g1h = G1CollectedHeap::heap();
   _bot_shared = _g1h->bot_shared();
   _ct_bs = (CardTableModRefBS*) (_g1h->barrier_set());
   _block_size = MAX2<int>(G1RSetScanBlockSize, 1);
 }
开发者ID:,项目名称:,代码行数:12,代码来源:

示例4: UpdateRSetOopsIntoCSDeferred

 UpdateRSetOopsIntoCSDeferred(G1CollectedHeap* g1, DirtyCardQueue* dcq) :
   _g1(g1), _ct_bs((CardTableModRefBS*)_g1->barrier_set()), _dcq(dcq) { }
开发者ID:,项目名称:,代码行数:2,代码来源:


注:本文中的G1CollectedHeap::barrier_set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。