mmalloc() -> xmmalloc()

This commit is contained in:
Andrew Cagney 2001-12-02 22:43:59 +00:00
parent aac7f4eaf2
commit 753edfefb3
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2001-12-02 Andrew Cagney <ac131313@redhat.com>
* jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
mmalloc.
* coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
symmisc.c, xcoffread.c: Use xmfree instead of mfree.

View File

@ -115,8 +115,7 @@ get_java_class_symtab (void)
/* Allocate GLOBAL_BLOCK. This has to be relocatable. */
class_symtab_space = 128;
bl = (struct block *)
mmalloc (objfile->md,
bl = xmmalloc (objfile->md,
sizeof (struct block)
+ ((class_symtab_space - 1) * sizeof (struct symbol *)));
*bl = *BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);