From ddc01d5b06b7a5206bd100e99ce72bc888da3b05 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Mon, 29 Jul 2013 22:58:58 +0400 Subject: [PATCH] runtime: fix openbsd build notetsleep: nosplit stack overflow 120 assumed on entry to notetsleep 96 after notetsleep uses 24 88 on entry to runtime.semasleep 32 after runtime.semasleep uses 56 24 on entry to runtime.nanotime -8 after runtime.nanotime uses 32 Nanotime seems to be using only 24 bytes of stack space. Unless I am missing something. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/12041044 --- src/pkg/runtime/sys_openbsd_amd64.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/sys_openbsd_amd64.s b/src/pkg/runtime/sys_openbsd_amd64.s index 3cbf0d9343..87e557c8ba 100644 --- a/src/pkg/runtime/sys_openbsd_amd64.s +++ b/src/pkg/runtime/sys_openbsd_amd64.s @@ -164,7 +164,7 @@ TEXT time·now(SB), 7, $32 MOVL DX, nsec+8(FP) RET -TEXT runtime·nanotime(SB),7,$32 +TEXT runtime·nanotime(SB),7,$24 MOVQ $0, DI // arg 1 - clock_id LEAQ 8(SP), SI // arg 2 - tp MOVL $232, AX // sys_clock_gettime -- 2.48.1