Subject: Re: PR/33392 CVS commit: src/dist/nawk
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Aleksey Cheusov <cheusov@tut.by>
List: netbsd-bugs
Date: 07/26/2006 21:35:01
The following reply was made to PR bin/33392; it has been noted by GNATS.

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: PR/33392 CVS commit: src/dist/nawk
Date: Thu, 27 Jul 2006 00:34:28 +0300

 >  1) we are here
 >      918         /* add tmpset to current set of states */
 >      919         ++(f->curstat);
 >  +   920         resize_state(f, f->curstat);
 >      921         for (i = 0; i < NCHARS; i++)
 >  2) 100 states was already created and all tables was properly initialized, i.e.
 >     f->state_count == 2.
 
       f->state_count == 100
 just a typo
 
 >  3) f->curstat == 99
 >  
 >  1) + 2) + 3) ===> unnecessary memory allocation in resize_state(), just a few kbytes.
 >    Is there any reason for this?
 >  
 >  -- 
 >  Best regards, Aleksey Cheusov.
 >  
 
 
 -- 
 Best regards, Aleksey Cheusov.