equal
deleted
inserted
replaced
966 } |
966 } |
967 } |
967 } |
968 |
968 |
969 void CodeBuffer::log_section_sizes(const char* name) { |
969 void CodeBuffer::log_section_sizes(const char* name) { |
970 if (xtty != NULL) { |
970 if (xtty != NULL) { |
|
971 ttyLocker ttyl; |
971 // log info about buffer usage |
972 // log info about buffer usage |
972 xtty->print_cr("<blob name='%s' size='%d'>", name, _total_size); |
973 xtty->print_cr("<blob name='%s' size='%d'>", name, _total_size); |
973 for (int n = (int) CodeBuffer::SECT_FIRST; n < (int) CodeBuffer::SECT_LIMIT; n++) { |
974 for (int n = (int) CodeBuffer::SECT_FIRST; n < (int) CodeBuffer::SECT_LIMIT; n++) { |
974 CodeSection* sect = code_section(n); |
975 CodeSection* sect = code_section(n); |
975 if (!sect->is_allocated() || sect->is_empty()) continue; |
976 if (!sect->is_allocated() || sect->is_empty()) continue; |