34 #include "compiler/compileLog.hpp" |
34 #include "compiler/compileLog.hpp" |
35 #include "compiler/compilerDirectives.hpp" |
35 #include "compiler/compilerDirectives.hpp" |
36 #include "compiler/directivesParser.hpp" |
36 #include "compiler/directivesParser.hpp" |
37 #include "compiler/disassembler.hpp" |
37 #include "compiler/disassembler.hpp" |
38 #include "interpreter/bytecode.hpp" |
38 #include "interpreter/bytecode.hpp" |
|
39 #include "logging/log.hpp" |
39 #include "memory/resourceArea.hpp" |
40 #include "memory/resourceArea.hpp" |
40 #include "oops/methodData.hpp" |
41 #include "oops/methodData.hpp" |
41 #include "oops/oop.inline.hpp" |
42 #include "oops/oop.inline.hpp" |
42 #include "prims/jvmtiRedefineClassesTrace.hpp" |
|
43 #include "prims/jvmtiImpl.hpp" |
43 #include "prims/jvmtiImpl.hpp" |
44 #include "runtime/atomic.inline.hpp" |
44 #include "runtime/atomic.inline.hpp" |
45 #include "runtime/orderAccess.inline.hpp" |
45 #include "runtime/orderAccess.inline.hpp" |
46 #include "runtime/os.hpp" |
46 #include "runtime/os.hpp" |
47 #include "runtime/sharedRuntime.hpp" |
47 #include "runtime/sharedRuntime.hpp" |
1999 for (Dependencies::DepStream deps(this); deps.next(); ) { |
1999 for (Dependencies::DepStream deps(this); deps.next(); ) { |
2000 if (deps.type() == Dependencies::evol_method) { |
2000 if (deps.type() == Dependencies::evol_method) { |
2001 Method* method = deps.method_argument(0); |
2001 Method* method = deps.method_argument(0); |
2002 for (int j = 0; j < dependee_methods->length(); j++) { |
2002 for (int j = 0; j < dependee_methods->length(); j++) { |
2003 if (dependee_methods->at(j) == method) { |
2003 if (dependee_methods->at(j) == method) { |
2004 // RC_TRACE macro has an embedded ResourceMark |
2004 if (log_is_enabled(Debug, redefine, class, nmethod)) { |
2005 RC_TRACE(0x01000000, |
2005 ResourceMark rm; |
2006 ("Found evol dependency of nmethod %s.%s(%s) compile_id=%d on method %s.%s(%s)", |
2006 log_debug(redefine, class, nmethod) |
2007 _method->method_holder()->external_name(), |
2007 ("Found evol dependency of nmethod %s.%s(%s) compile_id=%d on method %s.%s(%s)", |
2008 _method->name()->as_C_string(), |
2008 _method->method_holder()->external_name(), |
2009 _method->signature()->as_C_string(), compile_id(), |
2009 _method->name()->as_C_string(), |
2010 method->method_holder()->external_name(), |
2010 _method->signature()->as_C_string(), |
2011 method->name()->as_C_string(), |
2011 compile_id(), |
2012 method->signature()->as_C_string())); |
2012 method->method_holder()->external_name(), |
|
2013 method->name()->as_C_string(), |
|
2014 method->signature()->as_C_string()); |
|
2015 } |
2013 if (TraceDependencies || LogCompilation) |
2016 if (TraceDependencies || LogCompilation) |
2014 deps.log_dependency(dependee); |
2017 deps.log_dependency(dependee); |
2015 return true; |
2018 return true; |
2016 } |
2019 } |
2017 } |
2020 } |