Skip to content

Commit a9e53bb

Browse files
author
Thomas Schatzl
committed
8343783: Improve asserts in concurrentHashTable.inline.hpp
Reviewed-by: chagedorn
1 parent bf5c3ce commit a9e53bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/utilities/concurrentHashTable.inline.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ inline void ConcurrentHashTable<CONFIG, MT>::
491491
Node* ndel_stack[StackBufferSize];
492492
InternalTable* table = get_table();
493493
assert(start_idx < stop_idx, "Must be");
494-
assert(stop_idx <= _table->_size, "Must be");
494+
assert(stop_idx <= _table->_size, "stop_idx %zu larger than table size %zu", stop_idx, _table->_size);
495495
// Here manual do critical section since we don't want to take the cost of
496496
// locking the bucket if there is nothing to delete. But we can have
497497
// concurrent single deletes. The _invisible_epoch can only be used by the
@@ -1185,7 +1185,7 @@ inline bool ConcurrentHashTable<CONFIG, MT>::
11851185
do_scan_for_range(FUNC& scan_f, size_t start_idx, size_t stop_idx, InternalTable* table)
11861186
{
11871187
assert(start_idx < stop_idx, "Must be");
1188-
assert(stop_idx <= table->_size, "Must be");
1188+
assert(stop_idx <= table->_size, "stop_idx %zu larger than table size %zu", stop_idx, table->_size);
11891189

11901190
for (size_t bucket_it = start_idx; bucket_it < stop_idx; ++bucket_it) {
11911191
Bucket* bucket = table->get_bucket(bucket_it);

0 commit comments

Comments
 (0)