8025692: Log what methods are touched at run-time

Added two diagnostic flags, LogTouchedMethods and PrintTouchedMethodsAtExit to list all methods that have been touched at run time. Added new jcmd, VM.print_touched_methods.

Reviewed-by: acorn, iklam
This commit is contained in:
Yumin Qi 2015-07-15 12:24:41 -07:00
parent 99e5ddaa45
commit 6384ca7b1f
19 changed files with 319 additions and 18 deletions

View file

@ -625,6 +625,8 @@ class Method : public Metadata {
#if INCLUDE_SERVICES
void collect_statistics(KlassSizeStats *sz) const;
#endif
void log_touched(TRAPS);
static void print_touched_methods(outputStream* out);
// interpreter support
static ByteSize const_offset() { return byte_offset_of(Method, _constMethod ); }