diff options
| author | Russ Cox <rsc@golang.org> | 2011-12-05 09:40:22 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-12-05 09:40:22 -0500 |
| commit | b9ccd077dc478fca2e8bd00633c1a60a54f342d8 (patch) | |
| tree | 7e721c41503113d404fa3e99ab7bd8d5ba1c8110 /src/cmd/ld/dwarf.c | |
| parent | 263c955f2fff2016b5ff77d787d8e1b50555930a (diff) | |
| download | go-b9ccd077dc478fca2e8bd00633c1a60a54f342d8.tar.xz | |
runtime: prep for type-specific algorithms
Equality on structs will require arbitrary code for type equality,
so change algorithm in type data from uint8 to table pointer.
In the process, trim top-level map structure from
104/80 bytes (64-bit/32-bit) to 24/12.
Equality on structs will require being able to call code generated
by the Go compiler, and C code has no way to access Go return
values, so change the hash and equal algorithm functions to take
a pointer to a result instead of returning the result.
R=ken
CC=golang-dev
https://golang.org/cl/5453043
Diffstat (limited to 'src/cmd/ld/dwarf.c')
| -rw-r--r-- | src/cmd/ld/dwarf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ld/dwarf.c b/src/cmd/ld/dwarf.c index 373cf55237..cbd4522039 100644 --- a/src/cmd/ld/dwarf.c +++ b/src/cmd/ld/dwarf.c @@ -775,7 +775,7 @@ enum { KindNoPointers = 1<<7, // size of Type interface header + CommonType structure. - CommonSize = 2*PtrSize+ 4*PtrSize + 8, + CommonSize = 2*PtrSize+ 5*PtrSize + 8, }; static Reloc* |
