diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-03 20:04:43 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-03 20:04:43 +0100 |
| commit | ccfb6168c802e563944b548869f5884c5e87706e (patch) | |
| tree | b8d1c7836dc91da06468be12d341bdff07758bee | |
| parent | 6a55790197d8eed5b7e020a7b964ae260d0d205b (diff) | |
| download | plan9front-ccfb6168c802e563944b548869f5884c5e87706e.tar.xz | |
kernel: dont double ptemap size in newseg()
this doubling affects all segment types, not just bss.
(tho text/data are usually small...)
and theres no telling if the segment will actually
grow in the future justifying the reduction of memmove
overhead in ibrk().
some ape programs are approaching the 16mb ssegmap size
so that code might trigger.
removing the smarts...
| -rw-r--r-- | sys/src/9/port/segment.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/9/port/segment.c b/sys/src/9/port/segment.c index ef1c254c5..cd48d52b4 100644 --- a/sys/src/9/port/segment.c +++ b/sys/src/9/port/segment.c @@ -66,7 +66,6 @@ newseg(int type, uintptr base, ulong size) mapsize = ROUND(size, PTEPERTAB)/PTEPERTAB; if(mapsize > nelem(s->ssegmap)){ - mapsize *= 2; if(mapsize > (SEGMAPSIZE*PTEPERTAB)) mapsize = (SEGMAPSIZE*PTEPERTAB); s->map = smalloc(mapsize*sizeof(Pte*)); |
