Skip to content

Commit

Permalink
cmd/internal/obj/x86: modify the threshold of assert loop for span6
Browse files Browse the repository at this point in the history
Fixes: #49716

Change-Id: I7ed73f874c2ee1ee3f31c9c4428ed484167ca803
Reviewed-on: https://go-review.googlesource.com/c/go/+/366094
Reviewed-by: Cherry Mui <cherryyz@google.com>
Trust: Heschi Kreinick <heschi@google.com>
  • Loading branch information
zhouguangyuan0718 authored and cherrymui committed Nov 24, 2021
1 parent 465b402 commit 14f2b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/x86/asm6.go
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ func span6(ctxt *obj.Link, s *obj.LSym, newprog obj.ProgAlloc) {
}

n++
if n > 20 {
if n > 1000 {
ctxt.Diag("span must be looping")
log.Fatalf("loop")
}
Expand Down

0 comments on commit 14f2b2a

Please sign in to comment.