< prev index next >

src/hotspot/share/runtime/sharedRuntime.cpp

Print this page
rev 54589 : 8219586: CodeHeap State Analytics processes dead nmethods
Reviewed-by:

*** 2212,2222 **** static int _size_histogram[MAX_ARITY]; // histogram of arg size in words static int _max_arity; // max. arity seen static int _max_size; // max. arg size seen static void add_method_to_histogram(nmethod* nm) { ! if (CompiledMethod::nmethod_access_is_safe(nm)) { Method* method = nm->method(); ArgumentCount args(method->signature()); int arity = args.size() + (method->is_static() ? 0 : 1); int argsize = method->size_of_parameters(); arity = MIN2(arity, MAX_ARITY-1); --- 2212,2222 ---- static int _size_histogram[MAX_ARITY]; // histogram of arg size in words static int _max_arity; // max. arity seen static int _max_size; // max. arg size seen static void add_method_to_histogram(nmethod* nm) { ! if (nmethod::access_is_safe(nm)) { Method* method = nm->method(); ArgumentCount args(method->signature()); int arity = args.size() + (method->is_static() ? 0 : 1); int argsize = method->size_of_parameters(); arity = MIN2(arity, MAX_ARITY-1);
< prev index next >