same as 7.14 (7.15 just records debugging code)
authorKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Sat, 7 Apr 1990 02:44:30 +0000 (18:44 -0800)
committerKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Sat, 7 Apr 1990 02:44:30 +0000 (18:44 -0800)
SCCS-vsn: sys/kern/kern_malloc.c 7.16

usr/src/sys/kern/kern_malloc.c

index 2b21274..9d2b934 100644 (file)
@@ -14,7 +14,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)kern_malloc.c       7.15 (Berkeley) %G%
+ *     @(#)kern_malloc.c       7.16 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -37,12 +37,6 @@ long malloc_reentered;
                        else malloc_reentered = 1;}
 #define OUT (malloc_reentered = 0)
 
                        else malloc_reentered = 1;}
 #define OUT (malloc_reentered = 0)
 
-struct {
-       int     nomap;
-       int     atlimit;
-       int     freemem;
-} KFail;
-
 /*
  * Allocate a block of memory
  */
 /*
  * Allocate a block of memory
  */
@@ -71,7 +65,6 @@ again:
 #ifdef KMEMSTATS
        while (ksp->ks_memuse >= ksp->ks_limit) {
                if (flags & M_NOWAIT) {
 #ifdef KMEMSTATS
        while (ksp->ks_memuse >= ksp->ks_limit) {
                if (flags & M_NOWAIT) {
-                       KFail.atlimit++;
                        OUT;
                        splx(s);
                        return (0);
                        OUT;
                        splx(s);
                        return (0);
@@ -90,7 +83,6 @@ again:
                        allocsize = 1 << indx;
                npg = clrnd(btoc(allocsize));
                if ((flags & M_NOWAIT) && freemem < npg) {
                        allocsize = 1 << indx;
                npg = clrnd(btoc(allocsize));
                if ((flags & M_NOWAIT) && freemem < npg) {
-                       KFail.freemem++;
                        OUT;
                        splx(s);
                        return (0);
                        OUT;
                        splx(s);
                        return (0);
@@ -98,7 +90,6 @@ again:
                alloc = rmalloc(kmemmap, npg);
                if (alloc == 0) {
                        if (flags & M_NOWAIT) {
                alloc = rmalloc(kmemmap, npg);
                if (alloc == 0) {
                        if (flags & M_NOWAIT) {
-                               KFail.nomap++;
                                OUT;
                                splx(s);
                                return (0);
                                OUT;
                                splx(s);
                                return (0);