8155819: Support non-continuous CodeBlobs in HotSpot broke Zero

Adjust to CompiledMethod changes.

Reviewed-by: coleenp, rbackman
This commit is contained in:
Severin Gehwolf 2016-05-02 13:39:52 +02:00
parent 56d3ee3dbc
commit a0fa7abd14

View File

@ -360,7 +360,7 @@ void SharkFrame::identify_word(int frame_index,
case pc_off:
strncpy(fieldbuf, "pc", buflen);
if (method()->is_method()) {
nmethod *code = method()->code();
CompiledMethod *code = method()->code();
if (code && code->pc_desc_at(pc())) {
SimpleScopeDesc ssd(code, pc());
snprintf(valuebuf, buflen, PTR_FORMAT " (bci %d)",