Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(715)

Side by Side Diff: src/pkg/runtime/mem.go

Issue 4850045: co: new package
Patch Set: diff -r d499fb951a9e https://go.googlecode.com/hg/ Created 12 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/Makefile ('k') | src/pkg/runtime/proclocal.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package runtime 5 package runtime
6 6
7 import "unsafe" 7 import "unsafe"
8 8
9 type MemStatsType struct { 9 type MemStatsType struct {
10 // General statistics. 10 // General statistics.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // The statistics may be out of date, as the information is 65 // The statistics may be out of date, as the information is
66 // updated lazily from per-thread caches. 66 // updated lazily from per-thread caches.
67 // Use UpdateMemStats to bring the statistics up to date. 67 // Use UpdateMemStats to bring the statistics up to date.
68 var MemStats MemStatsType 68 var MemStats MemStatsType
69 69
70 // UpdateMemStats brings MemStats up to date. 70 // UpdateMemStats brings MemStats up to date.
71 func UpdateMemStats() 71 func UpdateMemStats()
72 72
73 // GC runs a garbage collection. 73 // GC runs a garbage collection.
74 func GC() 74 func GC()
75
76 func AllocProcLocal(active bool) (slot uint32)
77 func FreeProcLocal(slot uint32)
78 func GetProcLocal(slot uint32) (valp *uint64)
79 func IterProcLocal(slot uint32, valp **uint64, iter *uintptr) bool
OLDNEW
« no previous file with comments | « src/pkg/runtime/Makefile ('k') | src/pkg/runtime/proclocal.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b