diff options
Diffstat (limited to 'src/runtime/runtime.go')
| -rw-r--r-- | src/runtime/runtime.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index dbaea45a66..4e4e1d17a5 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -9,6 +9,8 @@ var ticks struct { val uint64 } +var tls0 [8]uintptr // available storage for m0's TLS; not necessarily used; opaque to GC + // Note: Called by runtime/pprof in addition to runtime code. func tickspersecond() int64 { r := int64(atomicload64(&ticks.val)) @@ -47,3 +49,12 @@ func parforalloc(nthrmax uint32) *parfor { nthrmax: nthrmax, } } + +var envs []string +var argslice []string + +// called from syscall +func runtime_envs() []string { return envs } + +// called from os +func runtime_args() []string { return argslice } |
