libgo: Always initialize semaphores.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 4 Apr 2011 23:43:59 +0000 (23:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 4 Apr 2011 23:43:59 +0000 (23:43 +0000)
commit06ec98415ab559f97fe90f661d91c4f9427db42b
treef21f4ad61a3f22ffc7d3ad730456f5392faa6d8a
parent9403944776d0a804dbb1253430633d04aef74c51
libgo: Always initialize semaphores.

2011-04-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR go/48222
* runtime/malloc.goc (runtime_mallocinit): Call
runtime_Mprof_Init, runtime_initfintab.
* runtime/cpuprof.c (runtime_cpuprofinit): New function.
* runtime/runtime.h (runtime_cpuprofinit): Declare it.
* runtime/go-main.c (main): Use it.

From-SVN: r171960
libgo/runtime/cpuprof.c
libgo/runtime/go-main.c
libgo/runtime/malloc.goc
libgo/runtime/runtime.h