提交 071c924e 编写于 作者: M mikael

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
上级 6232ef0b
...@@ -308,27 +308,6 @@ ByteSize FrameMap::sp_offset_for_monitor_object(int index) const { ...@@ -308,27 +308,6 @@ ByteSize FrameMap::sp_offset_for_monitor_object(int index) const {
return sp_offset_for_monitor_base(index) + in_ByteSize(BasicObjectLock::obj_offset_in_bytes()); return sp_offset_for_monitor_base(index) + in_ByteSize(BasicObjectLock::obj_offset_in_bytes());
} }
void FrameMap::print_frame_layout() const {
int svar;
tty->print_cr("#####################################");
tty->print_cr("Frame size in words %d", framesize());
if( _num_monitors > 0) {
tty->print_cr("monitor [0]:%d | [%2d]:%d",
in_bytes(sp_offset_for_monitor_base(0)),
in_bytes(sp_offset_for_monitor_base(_num_monitors)));
}
if( _num_spills > 0) {
svar = _num_spills - 1;
if(svar == 0)
tty->print_cr("spill [0]:%d", in_bytes(sp_offset_for_spill(0)));
else
tty->print_cr("spill [0]:%d | [%2d]:%d", in_bytes(sp_offset_for_spill(0)),
svar,
in_bytes(sp_offset_for_spill(svar)));
}
}
// For OopMaps, map a local variable or spill index to an VMReg. // For OopMaps, map a local variable or spill index to an VMReg.
// This is the offset from sp() in the frame of the slot for the index, // This is the offset from sp() in the frame of the slot for the index,
......
...@@ -226,8 +226,6 @@ class FrameMap : public CompilationResourceObj { ...@@ -226,8 +226,6 @@ class FrameMap : public CompilationResourceObj {
return make_new_address(sp_offset_for_monitor_object(monitor_index)); return make_new_address(sp_offset_for_monitor_object(monitor_index));
} }
void print_frame_layout() const;
// Creates Location describing desired slot and returns it via pointer // Creates Location describing desired slot and returns it via pointer
// to Location object. Returns true if the stack frame offset was legal // to Location object. Returns true if the stack frame offset was legal
// (as defined by Location::legal_offset_in_bytes()), false otherwise. // (as defined by Location::legal_offset_in_bytes()), false otherwise.
......
...@@ -373,6 +373,8 @@ process_chunk_boundaries(Space* sp, ...@@ -373,6 +373,8 @@ process_chunk_boundaries(Space* sp,
" does not exceed used.end() = " PTR_FORMAT "," " does not exceed used.end() = " PTR_FORMAT ","
" yet last_chunk_index_to_check " INTPTR_FORMAT " yet last_chunk_index_to_check " INTPTR_FORMAT
" exceeds last_chunk_index " INTPTR_FORMAT, " exceeds last_chunk_index " INTPTR_FORMAT,
last_block, last_block + last_block_size,
used.end(),
last_chunk_index_to_check, last_chunk_index)); last_chunk_index_to_check, last_chunk_index));
assert(sp->used_region().end() > used.end(), assert(sp->used_region().end() > used.end(),
err_msg("Expansion did not happen: " err_msg("Expansion did not happen: "
......
...@@ -694,7 +694,7 @@ void CardTableModRefBS::verify_region(MemRegion mr, ...@@ -694,7 +694,7 @@ void CardTableModRefBS::verify_region(MemRegion mr,
if (failed) { if (failed) {
if (!failures) { if (!failures) {
tty->cr(); tty->cr();
tty->print_cr("== CT verification failed: ["PTR_FORMAT","PTR_FORMAT"]"); tty->print_cr("== CT verification failed: ["PTR_FORMAT","PTR_FORMAT"]", start, end);
tty->print_cr("== %sexpecting value: %d", tty->print_cr("== %sexpecting value: %d",
(val_equals) ? "" : "not ", val); (val_equals) ? "" : "not ", val);
failures = true; failures = true;
......
...@@ -353,7 +353,7 @@ protected: ...@@ -353,7 +353,7 @@ protected:
assert(jp >= _begin && jp < _end, assert(jp >= _begin && jp < _end,
err_msg("Error: jp " PTR_FORMAT " should be within " err_msg("Error: jp " PTR_FORMAT " should be within "
"[_begin, _end) = [" PTR_FORMAT "," PTR_FORMAT ")", "[_begin, _end) = [" PTR_FORMAT "," PTR_FORMAT ")",
_begin, _end)); jp, _begin, _end));
oop obj = oopDesc::load_decode_heap_oop(p); oop obj = oopDesc::load_decode_heap_oop(p);
guarantee(obj == NULL || (HeapWord*)obj >= _boundary, guarantee(obj == NULL || (HeapWord*)obj >= _boundary,
err_msg("pointer " PTR_FORMAT " at " PTR_FORMAT " on " err_msg("pointer " PTR_FORMAT " at " PTR_FORMAT " on "
......
...@@ -773,7 +773,7 @@ static jvmtiError JNICALL ...@@ -773,7 +773,7 @@ static jvmtiError JNICALL
</xsl:text> </xsl:text>
<xsl:apply-templates select=".." mode="traceError"> <xsl:apply-templates select=".." mode="traceError">
<xsl:with-param name="err">JVMTI_ERROR_INVALID_THREAD</xsl:with-param> <xsl:with-param name="err">JVMTI_ERROR_INVALID_THREAD</xsl:with-param>
<xsl:with-param name="comment"> - jthread resolved to NULL - jthread = %0x%x</xsl:with-param> <xsl:with-param name="comment"> - jthread resolved to NULL - jthread = 0x%x</xsl:with-param>
<xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param> <xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
<xsl:text> <xsl:text>
...@@ -782,7 +782,7 @@ static jvmtiError JNICALL ...@@ -782,7 +782,7 @@ static jvmtiError JNICALL
</xsl:text> </xsl:text>
<xsl:apply-templates select=".." mode="traceError"> <xsl:apply-templates select=".." mode="traceError">
<xsl:with-param name="err">JVMTI_ERROR_INVALID_THREAD</xsl:with-param> <xsl:with-param name="err">JVMTI_ERROR_INVALID_THREAD</xsl:with-param>
<xsl:with-param name="comment"> - oop is not a thread - jthread = %0x%x</xsl:with-param> <xsl:with-param name="comment"> - oop is not a thread - jthread = 0x%x</xsl:with-param>
<xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param> <xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
<xsl:text> <xsl:text>
...@@ -794,7 +794,7 @@ static jvmtiError JNICALL ...@@ -794,7 +794,7 @@ static jvmtiError JNICALL
<xsl:with-param name="err"> <xsl:with-param name="err">
<xsl:text>JVMTI_ERROR_THREAD_NOT_ALIVE</xsl:text> <xsl:text>JVMTI_ERROR_THREAD_NOT_ALIVE</xsl:text>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="comment"> - not a Java thread - jthread = %0x%x</xsl:with-param> <xsl:with-param name="comment"> - not a Java thread - jthread = 0x%x</xsl:with-param>
<xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param> <xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
<xsl:text> <xsl:text>
...@@ -838,7 +838,7 @@ static jvmtiError JNICALL ...@@ -838,7 +838,7 @@ static jvmtiError JNICALL
</xsl:text> </xsl:text>
<xsl:apply-templates select=".." mode="traceError"> <xsl:apply-templates select=".." mode="traceError">
<xsl:with-param name="err">JVMTI_ERROR_ILLEGAL_ARGUMENT</xsl:with-param> <xsl:with-param name="err">JVMTI_ERROR_ILLEGAL_ARGUMENT</xsl:with-param>
<xsl:with-param name="comment"> - negative depth - jthread = %0x%x</xsl:with-param> <xsl:with-param name="comment"> - negative depth - jthread = 0x%x</xsl:with-param>
<xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param> <xsl:with-param name="extraValue">, <xsl:value-of select="$name"/></xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
<xsl:text> <xsl:text>
......
...@@ -419,7 +419,7 @@ void BaselineTTYOutputer::virtual_memory_callsite(address pc, size_t reserved_am ...@@ -419,7 +419,7 @@ void BaselineTTYOutputer::virtual_memory_callsite(address pc, size_t reserved_am
_output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset); _output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset);
_output->print("%28s", " "); _output->print("%28s", " ");
} else { } else {
_output->print("[" PTR_FORMAT "]%18s", " "); _output->print("[" PTR_FORMAT "]%18s", pc, " ");
} }
_output->print_cr("(mmap: reserved=%d%s, committed=%d%s)", _output->print_cr("(mmap: reserved=%d%s, committed=%d%s)",
...@@ -596,7 +596,7 @@ void BaselineTTYOutputer::diff_virtual_memory_callsite(address pc, ...@@ -596,7 +596,7 @@ void BaselineTTYOutputer::diff_virtual_memory_callsite(address pc,
_output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset); _output->print_cr("[" PTR_FORMAT "] %s+0x%x", pc, buf, offset);
_output->print("%28s", " "); _output->print("%28s", " ");
} else { } else {
_output->print("[" PTR_FORMAT "]%18s", " "); _output->print("[" PTR_FORMAT "]%18s", pc, " ");
} }
} }
......
...@@ -245,7 +245,7 @@ void AbsSeq::dump_on(outputStream* s) { ...@@ -245,7 +245,7 @@ void AbsSeq::dump_on(outputStream* s) {
void NumberSeq::dump_on(outputStream* s) { void NumberSeq::dump_on(outputStream* s) {
AbsSeq::dump_on(s); AbsSeq::dump_on(s);
s->print_cr("\t\t _last = %7.3f, _maximum = %7.3f"); s->print_cr("\t\t _last = %7.3f, _maximum = %7.3f", _last, _maximum);
} }
void TruncatedSeq::dump_on(outputStream* s) { void TruncatedSeq::dump_on(outputStream* s) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册