From 8f41a97a2479ea5e032b4fe825cfcdb960ad87bf Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sat, 4 Aug 2001 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2001-08-04 --- port/allocb.c | 6 +++++- port/devdraw.c | 1 + port/qio.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/port/allocb.c b/port/allocb.c index 615e7d93e06b6a5c748215e1032bd00bac6d07fe..5e7275bc4f2356255bc72dd942bd124dd0dacbb2 100644 --- a/port/allocb.c +++ b/port/allocb.c @@ -63,7 +63,11 @@ allocb(int size) if(up == nil) panic("allocb without up: %uX\n", getcallerpc(&size)); if((b = _allocb(size)) == nil) - panic("allocb: no memory\n"); +{ +xsummary(); +mallocsummary(); + panic("allocb: no memory for %d bytes\n", size); +} setmalloctag(b, getcallerpc(&size)); return b; diff --git a/port/devdraw.c b/port/devdraw.c index 919af85653826c100a7a17bfddeec7152aad647c..bc4dd2b786569612f57c8a6cdfe2a17d58daebbb 100644 --- a/port/devdraw.c +++ b/port/devdraw.c @@ -948,6 +948,7 @@ drawopen(Chan *c, int omode) c->mode = openmode(omode); c->flag |= COPEN; c->offset = 0; + c->iounit = 32*1024; return c; } diff --git a/port/qio.c b/port/qio.c index 6542dda136883ed0ec50dda21a375000fe8a51c5..6770e08363e4f33711b3d4e5b32ced45c16748e7 100644 --- a/port/qio.c +++ b/port/qio.c @@ -1187,7 +1187,7 @@ qbwrite(Queue *q, Block *b) * flow control, wait for queue to get below the limit * before allowing the process to continue and queue * more. We do this here so that postnote can only - * interrupt us after the data has been quued. This + * interrupt us after the data has been queued. This * means that things like 9p flushes and ssl messages * will not be disrupted by software interrupts. *