8267446: Taskqueue code fails with assert(bottom_relaxed() == age_top_relaxed()) failed: not empty

Reviewed-by: stefank, pliden
This commit is contained in:
Kim Barrett 2021-05-24 22:43:42 +00:00
parent ebc9357d58
commit f6909596ca
2 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,6 @@ TaskTerminator::TaskTerminator(uint n_threads, TaskQueueSetSuper* queue_set) :
TaskTerminator::~TaskTerminator() {
if (_offered_termination != 0) {
assert(_offered_termination == _n_threads, "Must be terminated or aborted");
assert_queue_set_empty();
}
assert(_spin_master == NULL, "Should have been reset");

View File

@ -465,6 +465,8 @@ public:
GenericTaskQueueSet(uint n);
~GenericTaskQueueSet();
// Set the i'th queue to the provided queue.
// Does not transfer ownership of the queue to this queue set.
void register_queue(uint i, T* q);
T* queue(uint n);