Mercurial > hg > truffle
comparison src/share/vm/services/memReporter.cpp @ 8668:3c9db54c2660
8008081: Print outs do not have matching arguments
Summary: Corrected formatted prints to have matching arguments, removed dead print_frame_layout function
Reviewed-by: sla, dholmes
author | mikael |
---|---|
date | Tue, 26 Feb 2013 08:54:03 -0800 |
parents | 79f492f184d0 |
children | cd2118b62475 |
comparison
equal
deleted
inserted
replaced
8106:ec2eddfed950 | 8668:3c9db54c2660 |
---|---|
417 _output->print("[BOOTSTRAP]%18s", " "); | 417 _output->print("[BOOTSTRAP]%18s", " "); |
418 } else if (os::dll_address_to_function_name(pc, buf, sizeof(buf), &offset)) { | 418 } else if (os::dll_address_to_function_name(pc, buf, sizeof(buf), &offset)) { |
419 _output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset); | 419 _output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset); |
420 _output->print("%28s", " "); | 420 _output->print("%28s", " "); |
421 } else { | 421 } else { |
422 _output->print("[" PTR_FORMAT "]%18s", " "); | 422 _output->print("[" PTR_FORMAT "]%18s", pc, " "); |
423 } | 423 } |
424 | 424 |
425 _output->print_cr("(mmap: reserved=%d%s, committed=%d%s)", | 425 _output->print_cr("(mmap: reserved=%d%s, committed=%d%s)", |
426 reserved_amt, unit, committed_amt, unit); | 426 reserved_amt, unit, committed_amt, unit); |
427 _output->print_cr(" "); | 427 _output->print_cr(" "); |
594 } else { | 594 } else { |
595 if (os::dll_address_to_function_name(pc, buf, sizeof(buf), &offset)) { | 595 if (os::dll_address_to_function_name(pc, buf, sizeof(buf), &offset)) { |
596 _output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset); | 596 _output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset); |
597 _output->print("%28s", " "); | 597 _output->print("%28s", " "); |
598 } else { | 598 } else { |
599 _output->print("[" PTR_FORMAT "]%18s", " "); | 599 _output->print("[" PTR_FORMAT "]%18s", pc, " "); |
600 } | 600 } |
601 } | 601 } |
602 | 602 |
603 _output->print("(mmap: reserved=%d%s", cur_reserved_amt, unit); | 603 _output->print("(mmap: reserved=%d%s", cur_reserved_amt, unit); |
604 if (reserved_diff != 0) { | 604 if (reserved_diff != 0) { |