comparison src/share/vm/code/oopRecorder.hpp @ 17428:50942f016967

remove duplicate check in OopRecorder
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 13 Oct 2014 15:52:19 -0700
parents 44b83285b645
children
comparison
equal deleted inserted replaced
17427:307b26f8b5d1 17428:50942f016967
190 } else { 190 } else {
191 _object_lookup = NULL; 191 _object_lookup = NULL;
192 } 192 }
193 } 193 }
194 194
195 void check_for_duplicates(int index, jobject h) NOT_DEBUG_RETURN;
196
197 int allocate_oop_index(jobject h) { 195 int allocate_oop_index(jobject h) {
198 return _oops.allocate_index(h); 196 return _oops.allocate_index(h);
199 } 197 }
200 int find_index(jobject h) { 198 int find_index(jobject h) {
201 int result = _object_lookup != NULL ? _object_lookup->find_index(h, this) : _oops.find_index(h); 199 return _object_lookup != NULL ? _object_lookup->find_index(h, this) : _oops.find_index(h);
202 check_for_duplicates(result, h);
203 return result;
204 } 200 }
205 jobject oop_at(int index) { 201 jobject oop_at(int index) {
206 return _oops.at(index); 202 return _oops.at(index);
207 } 203 }
208 int oop_size() { 204 int oop_size() {