diff options
| author | Russ Cox <rsc@golang.org> | 2011-01-25 16:35:36 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-01-25 16:35:36 -0500 |
| commit | afc6928ad9f7ac251ef42998ff51ae94b97924a2 (patch) | |
| tree | e2a0ba7a0688f99d4f52b5bed79fe0d832fd52e7 /src/pkg/runtime/runtime.c | |
| parent | eaae95fa3d9f54665ef954df26c2fd54a32460c3 (diff) | |
| download | go-afc6928ad9f7ac251ef42998ff51ae94b97924a2.tar.xz | |
runtime: prefer fixed stack allocator over general memory allocator
* move stack constants from proc.c to runtime.h
* make memclr take uintptr length
R=r
CC=golang-dev
https://golang.org/cl/3985046
Diffstat (limited to 'src/pkg/runtime/runtime.c')
| -rw-r--r-- | src/pkg/runtime/runtime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index 8d3675070c..ec4593f5ec 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -84,6 +84,10 @@ runtime·panicstring(int8 *s) { Eface err; + if(m->gcing) { + runtime·printf("panic: %s\n", s); + runtime·throw("panic during gc"); + } runtime·newErrorString(runtime·gostringnocopy((byte*)s), &err); runtime·panic(err); } |
