diff options
| author | Russ Cox <rsc@golang.org> | 2010-02-08 21:41:54 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-02-08 21:41:54 -0800 |
| commit | 62d627f0bcf7e2afe40e7ec5d61d6964b8284b43 (patch) | |
| tree | 2bb93457de928ee52c2c260d579a6229b43b7fdd /src/pkg/runtime/malloc.h | |
| parent | 9e2c9bb0ca26bddc6248e93ae00801e4d4f36be5 (diff) | |
| download | go-62d627f0bcf7e2afe40e7ec5d61d6964b8284b43.tar.xz | |
runtime: allow arbitrary return type in SetFinalizer.
finalize chan, to free OS X semaphore inside Lock.
os: finalize File, to close fd.
Fixes #503.
R=ken2
CC=golang-dev
https://golang.org/cl/204065
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 05f500a1e7..3a3b9bef6f 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -318,8 +318,7 @@ void* SysAlloc(uintptr); void SysUnused(void*, uintptr); void SysFree(void*, uintptr); -void addfinalizer(void*, void*); -void* getfinalizer(void*, bool); +void* getfinalizer(void*, bool, int32*); enum { |
