Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/perfData.cpp @ 6854:fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
Summary: Change makefiles so that targets and parameters can be overridden by alternate makefiles.
Reviewed-by: dholmes, coleenp
author | jprovino |
---|---|
date | Wed, 10 Oct 2012 14:35:58 -0400 |
parents | da91efe96a93 |
children | 203f64878aab |
comparison
equal
deleted
inserted
replaced
6830:81e878c53615 | 6854:fb19af007ffc |
---|---|
586 return strcmp((const char*)name, pd->name()) == 0; | 586 return strcmp((const char*)name, pd->name()) == 0; |
587 } | 587 } |
588 | 588 |
589 PerfData* PerfDataList::find_by_name(const char* name) { | 589 PerfData* PerfDataList::find_by_name(const char* name) { |
590 | 590 |
591 // if add_item hasn't been called the list won't be initialized | |
592 if (this == NULL) | |
593 return NULL; | |
594 | |
591 int i = _set->find((void*)name, PerfDataList::by_name); | 595 int i = _set->find((void*)name, PerfDataList::by_name); |
592 | 596 |
593 if (i >= 0 && i <= _set->length()) | 597 if (i >= 0 && i <= _set->length()) |
594 return _set->at(i); | 598 return _set->at(i); |
595 else | 599 else |