hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.cpp
changeset 17632 328934e1ed50
parent 14123 944e56f74fba
child 22827 07d991d45a51
child 22234 da823d78ad65
equal deleted inserted replaced
17631:17992863b0ab 17632:328934e1ed50
    46 }
    46 }
    47 
    47 
    48 template <class Chunk>
    48 template <class Chunk>
    49 AdaptiveFreeList<Chunk>::AdaptiveFreeList() : FreeList<Chunk>(), _hint(0) {
    49 AdaptiveFreeList<Chunk>::AdaptiveFreeList() : FreeList<Chunk>(), _hint(0) {
    50   init_statistics();
    50   init_statistics();
    51 }
       
    52 
       
    53 template <class Chunk>
       
    54 AdaptiveFreeList<Chunk>::AdaptiveFreeList(Chunk* fc) : FreeList<Chunk>(fc), _hint(0) {
       
    55   init_statistics();
       
    56 #ifndef PRODUCT
       
    57   _allocation_stats.set_returned_bytes(size() * HeapWordSize);
       
    58 #endif
       
    59 }
    51 }
    60 
    52 
    61 template <class Chunk>
    53 template <class Chunk>
    62 void AdaptiveFreeList<Chunk>::initialize() {
    54 void AdaptiveFreeList<Chunk>::initialize() {
    63   FreeList<Chunk>::initialize();
    55   FreeList<Chunk>::initialize();