Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/concurrentMarkSweep/adaptiveFreeList.cpp @ 10334:7c5a1b62f53d
8014971: Minor code cleanup of the freelist management
Reviewed-by: jwilhelm, jmasa, tschatzl
author | brutisso |
---|---|
date | Wed, 22 May 2013 08:04:58 +0200 |
parents | 685df3c6f84b |
children | de6a9e811145 bdd155477289 |
comparison
equal
deleted
inserted
replaced
10333:6702da6b6082 | 10334:7c5a1b62f53d |
---|---|
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(); |