mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8249837: Avoid direct or implicit Thread::current() calls when we already have a current thread variable
Add current thread OR remove unneeded HandleMark Reviewed-by: kvn, dholmes
This commit is contained in:
parent
79f02a67ce
commit
9798a0846b
50 changed files with 108 additions and 143 deletions
|
@ -111,7 +111,6 @@ void print_method_profiling_data() {
|
|||
if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData) &&
|
||||
(PrintMethodData || CompilerOracle::should_print_methods())) {
|
||||
ResourceMark rm;
|
||||
HandleMark hm;
|
||||
collected_profiled_methods = new GrowableArray<Method*>(1024);
|
||||
SystemDictionary::methods_do(collect_profiled_methods);
|
||||
collected_profiled_methods->sort(&compare_methods);
|
||||
|
@ -158,7 +157,6 @@ void collect_invoked_methods(Method* m) {
|
|||
|
||||
void print_method_invocation_histogram() {
|
||||
ResourceMark rm;
|
||||
HandleMark hm;
|
||||
collected_invoked_methods = new GrowableArray<Method*>(1024);
|
||||
SystemDictionary::methods_do(collect_invoked_methods);
|
||||
collected_invoked_methods->sort(&compare_methods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue