hotspot/src/share/vm/gc_implementation/g1/g1RemSet.cpp
changeset 29697 92501504191b
parent 29693 fac175f7a466
child 29796 7a04e5c250d1
equal deleted inserted replaced
29696:01571dfab5be 29697:92501504191b
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   105   G1BlockOffsetSharedArray* _bot_shared;
   105   G1BlockOffsetSharedArray* _bot_shared;
   106   G1SATBCardTableModRefBS *_ct_bs;
   106   G1SATBCardTableModRefBS *_ct_bs;
   107 
   107 
   108   double _strong_code_root_scan_time_sec;
   108   double _strong_code_root_scan_time_sec;
   109   uint   _worker_i;
   109   uint   _worker_i;
   110   int    _block_size;
   110   size_t _block_size;
   111   bool   _try_claimed;
   111   bool   _try_claimed;
   112 
   112 
   113 public:
   113 public:
   114   ScanRSClosure(G1ParPushHeapRSClosure* oc,
   114   ScanRSClosure(G1ParPushHeapRSClosure* oc,
   115                 CodeBlobClosure* code_root_cl,
   115                 CodeBlobClosure* code_root_cl,
   123     _try_claimed(false)
   123     _try_claimed(false)
   124   {
   124   {
   125     _g1h = G1CollectedHeap::heap();
   125     _g1h = G1CollectedHeap::heap();
   126     _bot_shared = _g1h->bot_shared();
   126     _bot_shared = _g1h->bot_shared();
   127     _ct_bs = _g1h->g1_barrier_set();
   127     _ct_bs = _g1h->g1_barrier_set();
   128     _block_size = MAX2<int>(G1RSetScanBlockSize, 1);
   128     _block_size = MAX2<size_t>(G1RSetScanBlockSize, 1);
   129   }
   129   }
   130 
   130 
   131   void set_try_claimed() { _try_claimed = true; }
   131   void set_try_claimed() { _try_claimed = true; }
   132 
   132 
   133   void scanCard(size_t index, HeapRegion *r) {
   133   void scanCard(size_t index, HeapRegion *r) {