diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-16 06:54:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-16 06:54:42 +0000 |
commit | be47d6eceffd2c5dbbc1566d5eea490527fb2bd4 (patch) | |
tree | 0e8fda573576bb4181dba29d0e88380a8c38fafd /libgo/runtime/thread.c | |
parent | efb30cdeb003fd7c585ee0d7657340086abcbd9e (diff) | |
download | gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.zip gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.tar.gz gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.tar.bz2 |
libgo: Update to Go 1.1.1.
From-SVN: r200974
Diffstat (limited to 'libgo/runtime/thread.c')
-rw-r--r-- | libgo/runtime/thread.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libgo/runtime/thread.c b/libgo/runtime/thread.c index 12d0099..83ee006 100644 --- a/libgo/runtime/thread.c +++ b/libgo/runtime/thread.c @@ -133,27 +133,6 @@ __sync_add_and_fetch_8 (uint64* ptr, uint64 add) #endif -// Called to initialize a new m (including the bootstrap m). -void -runtime_minit(void) -{ - byte* stack; - size_t stacksize; - stack_t ss; - sigset_t sigs; - - // Initialize signal handling. - runtime_m()->gsignal = runtime_malg(32*1024, &stack, &stacksize); // OS X wants >=8K, Linux >=2K - ss.ss_sp = stack; - ss.ss_flags = 0; - ss.ss_size = stacksize; - if(sigaltstack(&ss, nil) < 0) - *(int *)0xf1 = 0xf1; - if (sigemptyset(&sigs) != 0) - runtime_throw("sigemptyset"); - sigprocmask(SIG_SETMASK, &sigs, nil); -} - uintptr runtime_memlimit(void) { |