Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/freeList.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 | db9981fd3124 |
children | bdfbb1fb19ca |
comparison
equal
deleted
inserted
replaced
10333:6702da6b6082 | 10334:7c5a1b62f53d |
---|---|
50 , _protecting_lock(NULL) | 50 , _protecting_lock(NULL) |
51 #endif | 51 #endif |
52 { | 52 { |
53 _size = 0; | 53 _size = 0; |
54 _count = 0; | 54 _count = 0; |
55 } | |
56 | |
57 template <class Chunk> | |
58 FreeList<Chunk>::FreeList(Chunk* fc) : | |
59 _head(fc), _tail(fc) | |
60 #ifdef ASSERT | |
61 , _protecting_lock(NULL) | |
62 #endif | |
63 { | |
64 _size = fc->size(); | |
65 _count = 1; | |
66 } | 55 } |
67 | 56 |
68 template <class Chunk> | 57 template <class Chunk> |
69 void FreeList<Chunk>::link_head(Chunk* v) { | 58 void FreeList<Chunk>::link_head(Chunk* v) { |
70 assert_proper_lock_protection(); | 59 assert_proper_lock_protection(); |