Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(278)

Delta Between Two Patch Sets: src/pkg/runtime/runtime.h

Issue 11406044: code review 11406044: runtime: use funcdata to supply garbage collection info... (Closed)
Left Patch Set: diff -r 1203e3d32534 https://code.google.com/p/go/ Created 11 years, 8 months ago
Right Patch Set: diff -r beabb2116694 https://code.google.com/p/go/ Created 11 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/mgc0.c ('k') | src/pkg/runtime/symtab.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 /* 5 /*
6 * basic types 6 * basic types
7 */ 7 */
8 typedef signed char int8; 8 typedef signed char int8;
9 typedef unsigned char uint8; 9 typedef unsigned char uint8;
10 typedef signed short int16; 10 typedef signed short int16;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 enum 140 enum
141 { 141 {
142 PtrSize = sizeof(void*), 142 PtrSize = sizeof(void*),
143 }; 143 };
144 enum 144 enum
145 { 145 {
146 // Per-M stack segment cache size. 146 // Per-M stack segment cache size.
147 StackCacheSize = 32, 147 StackCacheSize = 32,
148 // Global <-> per-M stack segment cache transfer batch size. 148 // Global <-> per-M stack segment cache transfer batch size.
149 StackCacheBatch = 16, 149 StackCacheBatch = 16,
150 };
151 enum
152 {
153 // This value is generated by the linker and should be kept in
154 // sync with cmd/ld/lib.h
155 ArgsSizeUnknown = 0x80000000,
156 }; 150 };
157 /* 151 /*
158 * structures 152 * structures
159 */ 153 */
160 struct Lock 154 struct Lock
161 { 155 {
162 // Futex-based impl treats it as uint32 key, 156 // Futex-based impl treats it as uint32 key,
163 // while sema-based impl as M* waitm. 157 // while sema-based impl as M* waitm.
164 // Used to be a union, but unions break precise GC. 158 // Used to be a union, but unions break precise GC.
165 uintptr key; 159 uintptr key;
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 extern float64 runtime·neginf; 1052 extern float64 runtime·neginf;
1059 extern uint64 ·nan; 1053 extern uint64 ·nan;
1060 extern uint64 ·posinf; 1054 extern uint64 ·posinf;
1061 extern uint64 ·neginf; 1055 extern uint64 ·neginf;
1062 #define ISNAN(f) ((f) != (f)) 1056 #define ISNAN(f) ((f) != (f))
1063 1057
1064 enum 1058 enum
1065 { 1059 {
1066 UseSpanType = 1, 1060 UseSpanType = 1,
1067 }; 1061 };
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b