Esempio n. 1
0
void print_oop(oop value, outputStream* st) {
  if (value == NULL) {
    st->print_cr(" NULL");
  } else if (java_lang_String::is_instance(value)) {
    EXCEPTION_MARK;
    Handle h_value (THREAD, value);
    Symbol* sym = java_lang_String::as_symbol(h_value, CATCH);
    print_symbol(sym, st);
    sym->decrement_refcount();
  } else {
    st->print_cr(" " PTR_FORMAT, (intptr_t) value);
  }
}
Esempio n. 2
0
 // Decrement reference counter so it can go away if it's unique
 void clear() { if (_temp != NULL)  _temp->decrement_refcount();  _temp = NULL; }
Esempio n. 3
0
 // Decrement reference counter so it can go away if it's unique
 ~TempNewSymbol() { if (_temp != NULL) _temp->decrement_refcount(); }