Commit Graph

112 Commits

Author SHA1 Message Date
Mark Mitchell
c831fdea4b * ggc-page.c (poison_pages): Don't be overzealous.
From-SVN: r30209
1999-10-27 06:12:31 +00:00
Richard Earnshaw
5b9188072e * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
From-SVN: r30102
1999-10-20 12:53:23 +00:00
Richard Henderson
1b3e142338 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
From-SVN: r30070
1999-10-18 09:38:40 -07:00
Richard Henderson
8342b46746 * ggc-page.c (MAP_FAILED): Provide default.
From-SVN: r29961
1999-10-13 21:47:48 -07:00
Richard Henderson
005537dfed Simplified GC interface and other goodies.
From-SVN: r29946
1999-10-13 10:09:18 -07:00
Mark Mitchell
74c937ca61 ggc.h (ggc_push_context): Fix comment.
* ggc.h (ggc_push_context): Fix comment.
	(ggc_pop_context): Likewise.
	(mark_string_if_gcable): Likewise.
	* ggc-common.c (ggc_mark_rtx_children): Use
	ggc_mark_string_if_gcable.
	* ggc-page.c (ggc_lookup_page_table): New function.
	(ggc_allocated_p): Likewise.
	(mark_obj): Fix formatting.
	(ggc_mark_string_if_gcable): New function.
	* ggc-simple.c (ggc_allocated_strings): New variable.
	(ggc_strings_used): Likewise.
	(ggc_compare_addresses): New function.
	(ggc_pop_context): Pop the `any' memory too.
	(ggc_mark_string_if_gcable): New function.
	(ggc_collect): Initialize and tear down ggc_allocated_strings.

From-SVN: r29897
1999-10-11 02:11:21 +00:00
Paul Burchard
85f88abf55 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
From-SVN: r29833
1999-10-05 23:29:32 +00:00
Michael Meissner
1b42a6a905 Include tm_p.h in ggc files
From-SVN: r29825
1999-10-05 15:42:18 +00:00
Jeffrey A Law
88deedb5c9 ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx, not an array of rtunion.
* ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
        not an array of rtunion.
        * gcc-page.c (ggc_alloc_rtvec): Similarly.
        * gcc-simple (ggc_free_rtvec): Similarly.

From-SVN: r29793
1999-10-04 00:14:10 -06:00
Richard Henderson
e5ecd4eab3 ggc-page.c: Don't include <unistd.h> etc taken care of by "system.h".
* ggc-page.c: Don't include <unistd.h> etc taken care of
        by "system.h".  Include <sys/mman.h> afterward.

From-SVN: r29713
1999-09-29 16:08:11 -07:00
Richard Henderson
a70261eec1 ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
* ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
        (init_ggc): Use it instead of a constant.
        (ggc_collect): Bound allocated_last_gc by it.

From-SVN: r29685
1999-09-27 23:05:53 -07:00
Alex Samuel
21341cfd7f ggc-page.c: New file.
* ggc-page.c: New file.
        * Makefile.in (ggc-page.o): New.

Co-Authored-By: Richard Henderson <rth@cygnus.com>

From-SVN: r29632
1999-09-23 13:00:57 -07:00