Question about hashtables in jcf-io.c
Andrew Haley
aph@redhat.com
Tue Mar 25 09:58:00 GMT 2003
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.
More information about the Java
mailing list