]> Cypherpunks repositories - gostls13.git/commit
runtime: use UMTX_OP_WAIT_UINT on FreeBSD
authorIan Lance Taylor <iant@golang.org>
Fri, 12 Apr 2013 12:20:15 +0000 (05:20 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 12 Apr 2013 12:20:15 +0000 (05:20 -0700)
commit9fe8681df6c16d5c534fe43a04e5fd43d7cdc521
tree8072457e2eb81691ec9d1f1681a296d02722e6d0
parent1d1142f17834f75812448d54ce7a7abeebdf86c3
runtime: use UMTX_OP_WAIT_UINT on FreeBSD

UMTX_OP_WAIT expects that the address points to a uintptr, but
the code in lock_futex.c uses a uint32.  UMTX_OP_WAIT_UINT is
just like UMTX_OP_WAIT, but the address points to a uint32.
This almost certainly makes no difference on a little-endian
system, but since the kernel supports it we should do the
right thing.  And, who knows, maybe it matters.

R=golang-dev, bradfitz, r, ality
CC=golang-dev
https://golang.org/cl/8699043
src/pkg/runtime/defs_freebsd.go
src/pkg/runtime/defs_freebsd_386.h
src/pkg/runtime/defs_freebsd_amd64.h
src/pkg/runtime/defs_freebsd_arm.h
src/pkg/runtime/os_freebsd.c