changeset 51271:359607017fb7

8205006: Assertion failure when rehashing stringtable Reviewed-by: lfoltan, zgu
author rehn
date Tue, 19 Jun 2018 16:14:39 +0200
parents 8a18bcdd75ed
children f9f2e6a6a7b2
files src/hotspot/share/utilities/concurrentHashTable.inline.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");