History

20111003-1915

forsyth committed 15 years ago

Commit 71e861b1 parent 047deed3 files · +5 −3Browse files

Unified · Split

3 files
  1. CHANGES +2 −0
  2. include/version.h +1 −1
  3. libinterp/heap.c +2 −2
CHANGES+2−0
@@ -1,3 +1,5 @@
120111003
2 libinterp/heap.c:/^dtype discount size of map [issue 258]
120110820320110820
2 emu/*/devfs.c, emu/port/devfs-posix.c - stubs for osdisksize, Linux implementation of osdisksize4 emu/*/devfs.c, emu/port/devfs-posix.c - stubs for osdisksize, Linux implementation of osdisksize
3 emu/port/devfs-posix.c - also try SOCK_DGRAM for AF_UNIX [issue 269]5 emu/port/devfs-posix.c - also try SOCK_DGRAM for AF_UNIX [issue 269]
include/version.h+1−1
@@ -1 +1 @@
1#define VERSION "Fourth Edition (20110820)"1#define VERSION "Fourth Edition (20111003)"
libinterp/heap.c+2−2
@@ -158,7 +158,7 @@ freelist(Heap *h, int swept) · 157 unmodified lines
158 l = l->tail;158 l = l->tail;
159 while(l != (List*)H) {159 while(l != (List*)H) {
160 t = l->t;160 t = l->t;
161 th = D2H((ulong)l);161 th = D2H(l);
162 if(th->ref-- != 1)162 if(th->ref-- != 1)
163 break;163 break;
164 th->t->ref--; /* should be &Tlist and ref shouldn't go to 0 here nor be 0 already */164 th->t->ref--; /* should be &Tlist and ref shouldn't go to 0 here nor be 0 already */
@@ -242,7 +242,7 @@ dtype(void (*destroy)(Heap*, int), int size, uchar *map, int mapsize) · 77 unmodified lines
242{242{
243 Type *t;243 Type *t;
244 244
245 t = malloc(sizeof(Type)+mapsize);245 t = malloc(sizeof(Type)-sizeof(t->map)+mapsize);
246 if(t != nil) {246 if(t != nil) {
247 t->ref = 1;247 t->ref = 1;
248 t->free = destroy;248 t->free = destroy;