equal
deleted
inserted
replaced
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(); |