re PR java/17575 (gcjh does not clear its function name cache between files)
PR java/17575: * gjavah.c (free_method_name_list): New method. (main): Call it. From-SVN: r87812
This commit is contained in:
parent
d23cb2291b
commit
b8b639c915
@ -1,3 +1,9 @@
|
|||||||
|
2004-09-21 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
PR java/17575:
|
||||||
|
* gjavah.c (free_method_name_list): New method.
|
||||||
|
(main): Call it.
|
||||||
|
|
||||||
2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
|
2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
|
||||||
Zack Weinberg <zack@codesourcery.com>
|
Zack Weinberg <zack@codesourcery.com>
|
||||||
|
|
||||||
|
@ -636,6 +636,22 @@ name_is_method_p (const unsigned char *name, int length)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Free the method name list. */
|
||||||
|
static void
|
||||||
|
free_method_name_list ()
|
||||||
|
{
|
||||||
|
struct method_name *p = method_name_list;
|
||||||
|
while (p != NULL)
|
||||||
|
{
|
||||||
|
struct method_name *next = p->next;
|
||||||
|
free (p->name);
|
||||||
|
free (p->signature);
|
||||||
|
free (p);
|
||||||
|
p = next;
|
||||||
|
}
|
||||||
|
method_name_list = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* If there is already a native method named NAME, whose signature is not
|
/* If there is already a native method named NAME, whose signature is not
|
||||||
SIGNATURE, then return true. Otherwise return false. */
|
SIGNATURE, then return true. Otherwise return false. */
|
||||||
static int
|
static int
|
||||||
@ -2530,6 +2546,7 @@ main (int argc, char** argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free_method_name_list ();
|
||||||
process_file (&jcf, out);
|
process_file (&jcf, out);
|
||||||
JCF_FINISH (&jcf);
|
JCF_FINISH (&jcf);
|
||||||
if (current_output_file != output_file)
|
if (current_output_file != output_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user