There's a convention in hotspot to have a print function for most (many?) of the classes, like:
295 void print() const { print_on(tty); }
296 void print_on(outputStream* st) const;
Unfortunately, this makes calling print in gdb return:
(gdb) print mirror._o->klass()->print()
Cannot evaluate function -- may be inlined
There is no performance reason for print() to be inlined. With Unified Logging, most printing should go to a logStream anyway.
295 void print() const { print_on(tty); }
296 void print_on(outputStream* st) const;
Unfortunately, this makes calling print in gdb return:
(gdb) print mirror._o->klass()->print()
Cannot evaluate function -- may be inlined
There is no performance reason for print() to be inlined. With Unified Logging, most printing should go to a logStream anyway.