8214857: "bad trailing membar" assert failure at memnode.cpp:3220

Reviewed-by: adinn, thartmann
This commit is contained in:
Roland Westrelin 2018-12-03 10:51:03 +01:00
parent c9c59d3155
commit 136295d845

View File

@ -3230,7 +3230,7 @@ MemBarNode* MemBarNode::leading_membar() const {
while (leading != NULL && (!leading->is_MemBar() || !leading->as_MemBar()->leading())) {
while (leading == NULL || leading->is_top() || seen.test_set(leading->_idx)) {
leading = NULL;
while (regions.size() > 0) {
while (regions.size() > 0 && leading == NULL) {
Node* r = regions.node();
uint i = regions.index();
if (i < r->req()) {