167 clear(); |
167 clear(); |
168 } |
168 } |
169 |
169 |
170 void G1CodeRootSet::add(nmethod* method) { |
170 void G1CodeRootSet::add(nmethod* method) { |
171 if (!contains(method)) { |
171 if (!contains(method)) { |
172 // Find the first chunk thatisn't full. |
172 // Find the first chunk that isn't full. |
173 G1CodeRootChunk* cur = _list.head(); |
173 G1CodeRootChunk* cur = _list.head(); |
174 while (cur != NULL) { |
174 while (cur != NULL) { |
175 if (!cur->is_full()) { |
175 if (!cur->is_full()) { |
176 break; |
176 break; |
177 } |
177 } |