mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
7185614: NMT ON: "check by caller" assertion failed on nsk ThreadMXBean test
7187429: NMT ON: Merge failure should cause NMT to shutdown Fixed NMT assertion failures Reviewed-by: acorn, kvn
This commit is contained in:
parent
5a456b0991
commit
a13f3bdad8
4 changed files with 11 additions and 11 deletions
|
@ -63,13 +63,13 @@ class MemPointerIterator : public MemPointerArrayIteratorImpl {
|
|||
MemPointer* p1 = (MemPointer*)ptr;
|
||||
MemPointer* p2 = (MemPointer*)_array->at(_pos - 1);
|
||||
assert(!is_dup_pointer(p1, p2),
|
||||
"dup pointer");
|
||||
err_msg("duplicated pointer, flag = [%x]", (unsigned int)((MemPointerRecord*)p1)->flags()));
|
||||
}
|
||||
if (_pos < _array->length() -1) {
|
||||
MemPointer* p1 = (MemPointer*)ptr;
|
||||
MemPointer* p2 = (MemPointer*)_array->at(_pos + 1);
|
||||
assert(!is_dup_pointer(p1, p2),
|
||||
"dup pointer");
|
||||
err_msg("duplicated pointer, flag = [%x]", (unsigned int)((MemPointerRecord*)p1)->flags()));
|
||||
}
|
||||
return _array->insert_at(ptr, _pos);
|
||||
}
|
||||
|
@ -79,14 +79,14 @@ class MemPointerIterator : public MemPointerArrayIteratorImpl {
|
|||
MemPointer* p1 = (MemPointer*)ptr;
|
||||
MemPointer* p2 = (MemPointer*)_array->at(_pos - 1);
|
||||
assert(!is_dup_pointer(p1, p2),
|
||||
"dup pointer");
|
||||
err_msg("duplicated pointer, flag = [%x]", (unsigned int)((MemPointerRecord*)p1)->flags()));
|
||||
}
|
||||
if (_pos < _array->length() - 1) {
|
||||
MemPointer* p1 = (MemPointer*)ptr;
|
||||
MemPointer* p2 = (MemPointer*)_array->at(_pos + 1);
|
||||
|
||||
assert(!is_dup_pointer(p1, p2),
|
||||
"dup pointer");
|
||||
err_msg("duplicated pointer, flag = [%x]", (unsigned int)((MemPointerRecord*)p1)->flags()));
|
||||
}
|
||||
if (_array->insert_at(ptr, _pos + 1)) {
|
||||
_pos ++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue