]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "[release-branch.go1.5] runtime: check that stack barrier unwind is in sync"
authorChris Broadfoot <cbro@golang.org>
Tue, 8 Sep 2015 18:04:50 +0000 (18:04 +0000)
committerChris Broadfoot <cbro@golang.org>
Tue, 8 Sep 2015 22:38:42 +0000 (22:38 +0000)
This reverts commit f265044a489c9e572ffc141ed2d0e95f05d451c9.

Change-Id: I454f9da3a40d6724ab106aae904b8e77756aae99
Reviewed-on: https://go-review.googlesource.com/14383
Run-TryBot: Chris Broadfoot <cbro@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/asm_amd64.s

index b7bd3dd34f5c0eb87089d5debcfa57070ecf94b6..3b4ca4d012f88fdbc099e19fd3581bdf3356d674 100644 (file)
@@ -346,12 +346,7 @@ TEXT runtime·stackBarrier(SB),NOSPLIT,$0
        MOVQ    (g_stkbar+slice_array)(CX), DX
        MOVQ    g_stkbarPos(CX), BX
        IMULQ   $stkbar__size, BX       // Too big for SIB.
-       MOVQ    stkbar_savedLRPtr(DX)(BX*1), R8
        MOVQ    stkbar_savedLRVal(DX)(BX*1), BX
-       // Assert that we're popping the right saved LR.
-       CMPQ    R8, SP
-       JNE     2(PC)
-       MOVL    $0, 0
        // Record that this stack barrier was hit.
        ADDQ    $1, g_stkbarPos(CX)
        // Jump to the original return PC.