mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8027572: assert(r != 0) failed: invalid
Null classes should be expected in profiles with conflicts Reviewed-by: kvn, iveresov
This commit is contained in:
parent
a5b4fba397
commit
3fbc683322
6 changed files with 129 additions and 9 deletions
|
@ -690,7 +690,6 @@ public:
|
|||
// recorded type: cell without bit 0 and 1
|
||||
static intptr_t klass_part(intptr_t v) {
|
||||
intptr_t r = v & type_klass_mask;
|
||||
assert (r != 0, "invalid");
|
||||
return r;
|
||||
}
|
||||
|
||||
|
@ -698,7 +697,9 @@ public:
|
|||
static Klass* valid_klass(intptr_t k) {
|
||||
if (!is_type_none(k) &&
|
||||
!is_type_unknown(k)) {
|
||||
return (Klass*)klass_part(k);
|
||||
Klass* res = (Klass*)klass_part(k);
|
||||
assert(res != NULL, "invalid");
|
||||
return res;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue