Home
last modified time | relevance | path

Searched refs:Block_t (Results 1 – 25 of 129) sorted by relevance

123456

/dports/shells/ksh93-devel/ast-cc1bca27/src/lib/libast/vmalloc/
H A Dvmbest.c50 static int vmintree(Block_t* node, Block_t* b) in vmintree()
53 Block_t* node; in vmintree()
54 Block_t* b;
56 { Block_t* t;
69 static int vmonlist(Block_t* list, Block_t* b) in vmonlist()
72 Block_t* list; in vmonlist()
73 Block_t* b;
88 Block_t* b;
112 Block_t* b;
115 Block_t* t;
[all …]
H A Dvmhdr.h99 typedef struct _block_s Block_t; typedef
221 Block_t* block;
259 { Block_t* link; /* next in link list */
269 Block_t* self[1];
284 { Block_t* link;
285 Block_t* self;
312 Block_t* wild; /* wilderness block */
313 Block_t* root; /* root of free tree */
335 Block_t* free; /* recent free blocks */
354 #define LAST(b) (*((Block_t**)(((char*)(b)) - sizeof(Block_t*)) ) )
[all …]
H A Dvmlast.c44 Block_t *tp, *next;
101 Block_t *fp;
121 vd->free = NIL(Block_t*);
122 fp = (Block_t*)data;
126 seg->last = NIL(Block_t*);
145 Block_t *tp;
194 seg->free = NIL(Block_t*);
230 { tp = (Block_t*)data;
327 Block_t *fp;
339 seg->free = NIL(Block_t*);
[all …]
H A Dvmprivate.c42 static Block_t* _vmextend(vm, size, searchf ) in _vmextend()
50 reg Block_t *bp, *tp, *np;
60 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + 2*ALIGN;
62 return NIL(Block_t*);
64 return NIL(Block_t*);
88 return NIL(Block_t*);
106 vd->wild = NIL(Block_t*);
114 seg->free = NIL(Block_t*);
139 seg->free = NIL(Block_t*);
178 vd->wild = NIL(Block_t*);
[all …]
H A Dvmpool.c50 reg Block_t *tp, *next;
74 for(tp = NIL(Block_t*), seg = vd->seg; seg; seg = seg->next)
88 next = (Block_t*)((Vmuchar_t*)tp+size);
94 next = (Block_t*)((Vmuchar_t*)next + size);
96 seg->free = NIL(Block_t*);
122 Block_t *bp, *tp;
140 tp = (Block_t*)(laddr + (((Vmuchar_t*)addr-laddr)/size)*size );
167 Block_t *bp;
178 bp = (Block_t*)data;
252 Block_t *fp;
[all …]
/dports/shells/ksh93/ast-93u/src/lib/libast/vmalloc/
H A Dvmbest.c50 static int vmintree(Block_t* node, Block_t* b) in vmintree()
53 Block_t* node; in vmintree()
54 Block_t* b;
56 { Block_t* t;
69 static int vmonlist(Block_t* list, Block_t* b) in vmonlist()
72 Block_t* list; in vmonlist()
73 Block_t* b;
88 Block_t* b;
112 Block_t* b;
115 Block_t* t;
[all …]
H A Dvmhdr.h99 typedef struct _block_s Block_t; typedef
221 Block_t* block;
259 { Block_t* link; /* next in link list */
269 Block_t* self[1];
284 { Block_t* link;
285 Block_t* self;
312 Block_t* wild; /* wilderness block */
313 Block_t* root; /* root of free tree */
335 Block_t* free; /* recent free blocks */
354 #define LAST(b) (*((Block_t**)(((char*)(b)) - sizeof(Block_t*)) ) )
[all …]
H A Dvmlast.c44 Block_t *tp, *next;
101 Block_t *fp;
121 vd->free = NIL(Block_t*);
122 fp = (Block_t*)data;
126 seg->last = NIL(Block_t*);
145 Block_t *tp;
194 seg->free = NIL(Block_t*);
230 { tp = (Block_t*)data;
327 Block_t *fp;
339 seg->free = NIL(Block_t*);
[all …]
H A Dvmprivate.c42 static Block_t* _vmextend(vm, size, searchf ) in _vmextend()
50 reg Block_t *bp, *tp, *np;
60 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + 2*ALIGN;
62 return NIL(Block_t*);
64 return NIL(Block_t*);
88 return NIL(Block_t*);
106 vd->wild = NIL(Block_t*);
114 seg->free = NIL(Block_t*);
139 seg->free = NIL(Block_t*);
178 vd->wild = NIL(Block_t*);
[all …]
H A Dvmpool.c50 reg Block_t *tp, *next;
74 for(tp = NIL(Block_t*), seg = vd->seg; seg; seg = seg->next)
88 next = (Block_t*)((Vmuchar_t*)tp+size);
94 next = (Block_t*)((Vmuchar_t*)next + size);
96 seg->free = NIL(Block_t*);
122 Block_t *bp, *tp;
140 tp = (Block_t*)(laddr + (((Vmuchar_t*)addr-laddr)/size)*size );
167 Block_t *bp;
178 bp = (Block_t*)data;
252 Block_t *fp;
[all …]
/dports/shells/ast-ksh/ast-ksh93v/src/lib/libast/vmalloc/
H A Dvmsegment.c55 Block_t *bp; in isblock()
72 Block_t *bp; in isfree()
94 Block_t *pb, *bp, *blk; in _vmfreelist()
98 { blk = (Block_t*)arg; in _vmfreelist()
108 return NIL(Block_t*); in _vmfreelist()
232 Block_t* next; in _vmsegmerge()
246 static Block_t* _vmsegalloc(Vmalloc_t* vm, Block_t* blk, ssize_t size, int type) in _vmsegalloc()
251 Block_t *np, *endb; in _vmsegalloc()
273 RETURN(blk = NIL(Block_t*)); in _vmsegalloc()
299 RETURN(blk = NIL(Block_t*)); in _vmsegalloc()
[all …]
H A Dvmhdr.h226 Block_t* block;
262 { Block_t* link; /* next in link list */
263 Block_t* rght; /* right child in free tree */
264 Block_t* left; /* left child in free tree */
265 Block_t** self; /* self pointer when free */
300 #define SELF(b) ((Block_t**)((b)->body.data + BDSZ(b) - sizeof(Block_t*)) )
301 #define PREV(b) (*((Block_t**)(((Vmuchar_t*)(b)) - sizeof(Block_t*)) ) )
350 Block_t* begb; /* starting allocatable memory */
351 Block_t* endb; /* block at end of memory */
368 Block_t* free; /* not allocated to method yet */
[all …]
H A Dvmbest.c165 Block_t *a, *b, **s; in chktree()
232 Block_t *blk, *head; in bestfree()
233 Block_t* volatile *listp; in bestfree()
277 Block_t *blk, *pb, *nb; in bestpackget()
338 Block_t *pblk, *endb; in bestpackextend()
428 RGHT(l) = NIL(Block_t*); in bestpackextract()
564 Block_t *tp, *np, *pblk; in bestpackalloc()
627 return NIL(Block_t*); in bestpackalloc()
716 Block_t *blk; in bestalloc()
776 Block_t *rp, *np; in bestresize()
[all …]
/dports/graphics/graphviz/graphviz-2.44.1/lib/vmalloc/
H A Dvmhdr.h55 typedef struct _block_s Block_t; typedef
151 Block_t *block;
189 Block_t *link; /* next in link list */
190 Block_t *left; /* left child in free tree */
212 Block_t *link;
213 Block_t *self;
265 Block_t *free; /* recent free blocks */
266 Block_t *last; /* Vmlast last-allocated block */
284 #define SELF(b) ((Block_t**)((b)->body.data + SIZE(b) - sizeof(Block_t*)) )
285 #define LAST(b) (*((Block_t**)(((char*)(b)) - sizeof(Block_t*)) ) )
[all …]
H A Dvmbest.c46 static int vmintree(Block_t * node, Block_t * b) in vmintree()
48 Block_t *t; in vmintree()
63 Block_t *t; in vmisfree()
81 Block_t *t; in vmchktree()
100 static int vmonlist(Block_t * list, Block_t * b) in vmonlist()
205 Block_t * wanted) in bestsearch()
209 Block_t link; in bestsearch()
316 Block_t tree; in bestreclaim()
330 *cache = NIL(Block_t *); in bestreclaim()
930 reg Block_t *bp, *t; in bestcompact()
[all …]
H A Dvmlast.c23 reg Block_t *tp, *next; in lastalloc()
69 seg->free = NIL(Block_t *); in lastalloc()
84 reg Block_t *fp; in lastfree()
112 vd->free = NIL(Block_t *); in lastfree()
113 fp = (Block_t *) data; in lastfree()
119 seg->last = NIL(Block_t *); in lastfree()
128 reg Block_t *tp; in lastresize()
220 tp = (Block_t *) data; in lastresize()
294 reg Block_t *fp; in lastcompact()
311 seg->free = NIL(Block_t *); in lastcompact()
[all …]
H A Dvmprivate.c33 static Block_t *vmextend(reg Vmalloc_t * vm, size_t size, in vmextend()
38 reg Block_t *bp, *t; in vmextend()
50 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + in vmextend()
53 return NIL(Block_t *); in vmextend()
55 return NIL(Block_t *); in vmextend()
87 return NIL(Block_t *); in vmextend()
97 return NIL(Block_t *); in vmextend()
114 vd->wild = NIL(Block_t *); in vmextend()
122 seg->free = NIL(Block_t *); in vmextend()
142 seg->free = NIL(Block_t *); in vmextend()
[all …]
H A Dvmpool.c30 reg Block_t *tp, *next; in poolalloc()
58 for (tp = NIL(Block_t *), seg = vd->seg; seg; seg = seg->next) { in poolalloc()
77 next = (Block_t *) ((Vmuchar_t *) tp + size); in poolalloc()
83 next = (Block_t *) ((Vmuchar_t *) next + size); in poolalloc()
85 seg->free = NIL(Block_t *); in poolalloc()
102 reg Block_t *bp, *tp; in pooladdr()
126 tp = (Block_t *) (laddr + in pooladdr()
146 reg Block_t *bp; in poolfree()
167 bp = (Block_t *) data; in poolfree()
228 reg Block_t *fp; in poolcompact()
[all …]
/dports/lang/erlang-runtime21/otp-OTP-21.3.8.24/erts/emulator/beam/
H A Derl_afit_alloc.c42 Block_t block_head;
52 static Block_t * get_free_block (Allctr_t *, Uint, Block_t *, Uint);
53 static void link_free_block (Allctr_t *, Block_t *);
54 static void unlink_free_block (Allctr_t *, Block_t *);
120 static Block_t *
121 get_free_block(Allctr_t *allctr, Uint size, Block_t *cand_blk, Uint cand_size) in get_free_block()
132 return (Block_t *) res; in get_free_block()
139 link_free_block(Allctr_t *allctr, Block_t *block) in link_free_block()
160 unlink_free_block(Allctr_t *allctr, Block_t *block) in unlink_free_block()
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/erts/emulator/beam/
H A Derl_afit_alloc.c42 Block_t block_head;
52 static Block_t * get_free_block (Allctr_t *, Uint, Block_t *, Uint);
53 static void link_free_block (Allctr_t *, Block_t *);
54 static void unlink_free_block (Allctr_t *, Block_t *);
122 static Block_t *
123 get_free_block(Allctr_t *allctr, Uint size, Block_t *cand_blk, Uint cand_size) in get_free_block()
134 return (Block_t *) res; in get_free_block()
141 link_free_block(Allctr_t *allctr, Block_t *block) in link_free_block()
162 unlink_free_block(Allctr_t *allctr, Block_t *block) in unlink_free_block()
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/erts/emulator/beam/
H A Derl_afit_alloc.c42 Block_t block_head;
51 static Block_t * get_free_block (Allctr_t *, Uint, Block_t *, Uint);
52 static void link_free_block (Allctr_t *, Block_t *);
53 static void unlink_free_block (Allctr_t *, Block_t *);
120 static Block_t *
121 get_free_block(Allctr_t *allctr, Uint size, Block_t *cand_blk, Uint cand_size) in get_free_block()
132 return (Block_t *) res; in get_free_block()
139 link_free_block(Allctr_t *allctr, Block_t *block) in link_free_block()
160 unlink_free_block(Allctr_t *allctr, Block_t *block) in unlink_free_block()
/dports/lang/erlang-runtime22/otp-OTP-22.3.4.24/erts/emulator/beam/
H A Derl_afit_alloc.c42 Block_t block_head;
52 static Block_t * get_free_block (Allctr_t *, Uint, Block_t *, Uint);
53 static void link_free_block (Allctr_t *, Block_t *);
54 static void unlink_free_block (Allctr_t *, Block_t *);
122 static Block_t *
123 get_free_block(Allctr_t *allctr, Uint size, Block_t *cand_blk, Uint cand_size) in get_free_block()
134 return (Block_t *) res; in get_free_block()
141 link_free_block(Allctr_t *allctr, Block_t *block) in link_free_block()
162 unlink_free_block(Allctr_t *allctr, Block_t *block) in unlink_free_block()
/dports/lang/erlang-wx/otp-OTP-24.1.7/erts/emulator/beam/
H A Derl_afit_alloc.c42 Block_t block_head;
51 static Block_t * get_free_block (Allctr_t *, Uint, Block_t *, Uint);
52 static void link_free_block (Allctr_t *, Block_t *);
53 static void unlink_free_block (Allctr_t *, Block_t *);
120 static Block_t *
121 get_free_block(Allctr_t *allctr, Uint size, Block_t *cand_blk, Uint cand_size) in get_free_block()
132 return (Block_t *) res; in get_free_block()
139 link_free_block(Allctr_t *allctr, Block_t *block) in link_free_block()
160 unlink_free_block(Allctr_t *allctr, Block_t *block) in unlink_free_block()
/dports/lang/erlang/otp-OTP-24.1.7/erts/emulator/beam/
H A Derl_afit_alloc.c42 Block_t block_head;
51 static Block_t * get_free_block (Allctr_t *, Uint, Block_t *, Uint);
52 static void link_free_block (Allctr_t *, Block_t *);
53 static void unlink_free_block (Allctr_t *, Block_t *);
120 static Block_t *
121 get_free_block(Allctr_t *allctr, Uint size, Block_t *cand_blk, Uint cand_size) in get_free_block()
132 return (Block_t *) res; in get_free_block()
139 link_free_block(Allctr_t *allctr, Block_t *block) in link_free_block()
160 unlink_free_block(Allctr_t *allctr, Block_t *block) in unlink_free_block()
/dports/lang/erlang-java/otp-OTP-24.1.7/erts/emulator/beam/
H A Derl_afit_alloc.c42 Block_t block_head;
51 static Block_t * get_free_block (Allctr_t *, Uint, Block_t *, Uint);
52 static void link_free_block (Allctr_t *, Block_t *);
53 static void unlink_free_block (Allctr_t *, Block_t *);
120 static Block_t *
121 get_free_block(Allctr_t *allctr, Uint size, Block_t *cand_blk, Uint cand_size) in get_free_block()
132 return (Block_t *) res; in get_free_block()
139 link_free_block(Allctr_t *allctr, Block_t *block) in link_free_block()
160 unlink_free_block(Allctr_t *allctr, Block_t *block) in unlink_free_block()

123456