Skip to content

Commit 2dd5667

Browse files
wattsun110rkennke
authored andcommittedMay 6, 2021
8266018: Shenandoah: fix an incorrect assert
Reviewed-by: rkennke
1 parent 22ca62c commit 2dd5667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ Node* next_mem(Node* mem, int alias) {
692692
} else if (mem->is_MergeMem()) {
693693
res = mem->as_MergeMem()->memory_at(alias);
694694
} else if (mem->is_Store() || mem->is_LoadStore() || mem->is_ClearArray()) {
695-
assert(alias = Compile::AliasIdxRaw, "following raw memory can't lead to a barrier");
695+
assert(alias == Compile::AliasIdxRaw, "following raw memory can't lead to a barrier");
696696
res = mem->in(MemNode::Memory);
697697
} else {
698698
#ifdef ASSERT

0 commit comments

Comments
 (0)
Please sign in to comment.