8205006: Assertion failure when rehashing stringtable
authorrehn
Tue, 19 Jun 2018 16:14:39 +0200
changeset 50637 359607017fb7
parent 50636 8a18bcdd75ed
child 50638 f9f2e6a6a7b2
8205006: Assertion failure when rehashing stringtable Reviewed-by: lfoltan, zgu
src/hotspot/share/utilities/concurrentHashTable.inline.hpp
--- a/src/hotspot/share/utilities/concurrentHashTable.inline.hpp	Tue Jun 19 05:22:07 2018 -0700
+++ b/src/hotspot/share/utilities/concurrentHashTable.inline.hpp	Tue Jun 19 16:14:39 2018 +0200
@@ -1203,7 +1203,7 @@
   if (!try_resize_lock(thread)) {
     return false;
   }
-  assert(_new_table == NULL, "Must be NULL");
+  assert(_new_table == NULL || _new_table == POISON_PTR, "Must be NULL");
   for (size_t bucket_it = 0; bucket_it < _table->_size; bucket_it++) {
     Bucket* bucket = _table->get_bucket(bucket_it);
     assert(!bucket->have_redirect() && !bucket->is_locked(), "Table must be uncontended");