This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Question about hashtables in jcf-io.c
- From: Andrew Haley <aph at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: GCJ Java <java at gcc dot gnu dot org>
- Date: Tue, 25 Mar 2003 09:57:48 +0000 (GMT)
- Subject: Question about hashtables in jcf-io.c
- References: <EBKICA0675MG62USRN2MLB7Y51UQP.3e741a4c@p733>
Mohan Embar writes:
> Hi,
>
> There are two static hashtables in jcf-io.c: memoized_dirlists
> and memoized_class_lookups. I see the htab_create calls for
> these, but not any htab_delete calls. Are these hidden somewhere
> that I'm missing? If not, are they not there on purpose? (The
> only rationale I can think of for not having these is that it
> is assumed that they will live throughout the pcocess' lifetime,
That seems reasonable.
> but I still thought it was good practice to clean things up
> explicitly.)
>
> The same question applies to the namelists malloc-ed by scandir().
>
> Thanks in advance for helping me understand this.
I have no idea. The only way for me to find out would be to study the
code.
Andrew.