8008340: [sampling] assert(upper->pc_offset() >= pc_offset) failed: sanity

Reviewed-by: kvn, sla
This commit is contained in:
Rickard Bäckman 2013-02-26 14:09:52 +01:00
parent f85789e68a
commit 1a74b23a2f
2 changed files with 11 additions and 0 deletions

View file

@ -91,6 +91,12 @@ bool frame::safe_for_sender(JavaThread *thread) {
return false;
}
}
// Could just be some random pointer within the codeBlob
if (!_cb->code_contains(_pc)) {
return false;
}
// Entry frame checks
if (is_entry_frame()) {
// an entry frame must have a valid fp.