1954 ResourceMark rm;
1955 for (PcDesc* p = scopes_pcs_begin(); p < scopes_pcs_end(); p++) {
1956 if (p->scope_decode_offset() == DebugInformationRecorder::serialized_null)
1957 continue;
1958
1959 ScopeDesc* sd = scope_desc_at(p->real_pc(this));
1960 sd->print_on(tty, p);
1961 }
1962 }
1963
1964 void nmethod::print_dependencies() {
1965 ResourceMark rm;
1966 ttyLocker ttyl; // keep the following output all in one block
1967 tty->print_cr("Dependencies:");
1968 for (Dependencies::DepStream deps(this); deps.next(); ) {
1969 deps.print_dependency();
1970 klassOop ctxk = deps.context_type();
1971 if (ctxk != NULL) {
1972 Klass* k = Klass::cast(ctxk);
1973 if (k->oop_is_instance() && ((instanceKlass*)k)->is_dependent_nmethod(this)) {
1974 tty->print(" [nmethod<=klass]%s", k->external_name());
1975 }
1976 }
1977 deps.log_dependency(); // put it into the xml log also
1978 }
1979 }
1980
1981
1982 void nmethod::print_code() {
1983 HandleMark hm;
1984 ResourceMark m;
1985 Disassembler().decode(this);
1986 }
1987
1988
1989 void nmethod::print_relocations() {
1990 ResourceMark m; // in case methods get printed via the debugger
1991 tty->print_cr("relocations:");
1992 RelocIterator iter(this);
1993 iter.print();
1994 if (UseRelocIndex) {
|
1954 ResourceMark rm;
1955 for (PcDesc* p = scopes_pcs_begin(); p < scopes_pcs_end(); p++) {
1956 if (p->scope_decode_offset() == DebugInformationRecorder::serialized_null)
1957 continue;
1958
1959 ScopeDesc* sd = scope_desc_at(p->real_pc(this));
1960 sd->print_on(tty, p);
1961 }
1962 }
1963
1964 void nmethod::print_dependencies() {
1965 ResourceMark rm;
1966 ttyLocker ttyl; // keep the following output all in one block
1967 tty->print_cr("Dependencies:");
1968 for (Dependencies::DepStream deps(this); deps.next(); ) {
1969 deps.print_dependency();
1970 klassOop ctxk = deps.context_type();
1971 if (ctxk != NULL) {
1972 Klass* k = Klass::cast(ctxk);
1973 if (k->oop_is_instance() && ((instanceKlass*)k)->is_dependent_nmethod(this)) {
1974 tty->print_cr(" [nmethod<=klass]%s", k->external_name());
1975 }
1976 }
1977 deps.log_dependency(); // put it into the xml log also
1978 }
1979 }
1980
1981
1982 void nmethod::print_code() {
1983 HandleMark hm;
1984 ResourceMark m;
1985 Disassembler().decode(this);
1986 }
1987
1988
1989 void nmethod::print_relocations() {
1990 ResourceMark m; // in case methods get printed via the debugger
1991 tty->print_cr("relocations:");
1992 RelocIterator iter(this);
1993 iter.print();
1994 if (UseRelocIndex) {
|