]> Cypherpunks repositories - gostls13.git/commit
runtime: check for preemption due to garbage collection
authorRuss Cox <rsc@golang.org>
Sat, 9 Jan 2010 17:47:45 +0000 (09:47 -0800)
committerRuss Cox <rsc@golang.org>
Sat, 9 Jan 2010 17:47:45 +0000 (09:47 -0800)
commit5328df6534b9fa2ca83cbbac013ef1e094e11907
tree0a6fa7c1c69e10eb519d896d2634b6662999e835
parent752b1702d03fbc4377fe856a378c7fa4abbb006f
runtime: check for preemption due to garbage collection
in various already expensive routines.

helps keep cpu utilization up when GOMAXPROCS > 1,
but not a full solution.

http://groups.google.com/group/golang-nuts/t/7a9535c4136d3e2

R=r
CC=golang-dev
https://golang.org/cl/184043
src/pkg/runtime/chan.c
src/pkg/runtime/hashmap.c
src/pkg/runtime/malloc.cgo
src/pkg/runtime/mgc0.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h