Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
7843a14d
Commit
7843a14d
authored
Jan 08, 2009
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate typedef declarations.
R=rsc DELTA=7 (0 added, 7 deleted, 0 changed) OCL=22267 CL=22281
parent
cb13c4d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
malloc.h
src/runtime/malloc.h
+0
-7
No files found.
src/runtime/malloc.h
View file @
7843a14d
...
...
@@ -73,7 +73,6 @@
typedef
struct
FixAlloc
FixAlloc
;
typedef
struct
MCentral
MCentral
;
typedef
struct
MCache
MCache
;
typedef
struct
MHeap
MHeap
;
typedef
struct
MHeapMap
MHeapMap
;
typedef
struct
MHeapMapCache
MHeapMapCache
;
...
...
@@ -148,7 +147,6 @@ void FixAlloc_Free(FixAlloc *f, void *p);
// Statistics.
// Shared with Go: if you edit this structure, also edit ../lib/malloc.go.
typedef
struct
MStats
MStats
;
struct
MStats
{
uint64
alloc
;
...
...
@@ -228,7 +226,6 @@ void MSpanList_Remove(MSpan *span); // from whatever list it is in
// Central list of free objects of a given size.
typedef
struct
MCentral
MCentral
;
struct
MCentral
{
Lock
;
...
...
@@ -256,7 +253,6 @@ void MCentral_FreeList(MCentral *c, int32 n, MLink *first);
// On the other hand, it's just virtual address space: most of
// the memory is never going to be touched, thus never paged in.
typedef
struct
MHeapMap
MHeapMap
;
typedef
struct
MHeapMapNode2
MHeapMapNode2
;
typedef
struct
MHeapMapNode3
MHeapMapNode3
;
...
...
@@ -319,7 +315,6 @@ enum
MHeapMapCache_HashBits
=
12
};
typedef
struct
MHeapMapCache
MHeapMapCache
;
struct
MHeapMapCache
{
uintptr
array
[
1
<<
MHeapMapCache_HashBits
];
...
...
@@ -341,7 +336,6 @@ struct MHeapMapCache
// Main malloc heap.
// The heap itself is the "free[]" and "large" arrays,
// but all the other global data is here too.
typedef
struct
MHeap
MHeap
;
struct
MHeap
{
Lock
;
...
...
@@ -370,4 +364,3 @@ void MHeap_Init(MHeap *h, void *(*allocator)(uintptr));
MSpan
*
MHeap_Alloc
(
MHeap
*
h
,
uintptr
npage
,
int32
sizeclass
);
void
MHeap_Free
(
MHeap
*
h
,
MSpan
*
s
);
MSpan
*
MHeap_Lookup
(
MHeap
*
h
,
PageID
p
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment