Exemple #1
0
void FlatProfiler::interpreted_update(methodOop method, klassOop klass, TickPosition where) {
  int index = entry(method->selector_or_method()->identity_hash());
  if (!table[index]) {
    table[index] = new interpretedNode(method, klass, where);
  } else {
    for(pnode* node = table[index]; node; node = node->next()) {
      if (node->match(method, klass)) {
        node->update(where);
        return;
      }
      if (!node->next())
        node->set_next(new interpretedNode(method, klass, where));
    }
  }
}