public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFA][PATCH] Adding missing calls to bitmap_clear
@ 2016-03-21 19:10 Jeff Law
  2016-03-21 19:39 ` Bernd Schmidt
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Law @ 2016-03-21 19:10 UTC (permalink / raw)
  To: gcc-patches@gcc.gnu.org >> gcc-patches

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]


As noted last week, find_removable_extensions initializes several 
bitmaps, but doesn't clear them.

This is not strictly a leak as the GC system should find dead data, but 
it's better to go ahead and clear the bitmaps.  That releases the 
elements back to the cache and presumably makes things easier for the GC 
system as well.

Bootstrapped and regression tested on x86_64-linux-gnu.

OK for the trunk?

Jeff

[-- Attachment #2: P --]
[-- Type: text/plain, Size: 375 bytes --]

	* ree.c (find_removable_extensions): Clear the local bitmaps.

diff --git a/gcc/ree.c b/gcc/ree.c
index 13a7a05..3dc180c 100644
--- a/gcc/ree.c
+++ b/gcc/ree.c
@@ -1139,6 +1139,10 @@ find_removable_extensions (void)
     }
 
   XDELETEVEC (def_map);
+  bitmap_clear (&init);
+  bitmap_clear (&kill);
+  bitmap_clear (&gen);
+  bitmap_clear (&tmp);
 
   return insn_list;
 }

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-29  8:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-21 19:10 [RFA][PATCH] Adding missing calls to bitmap_clear Jeff Law
2016-03-21 19:39 ` Bernd Schmidt
2016-03-21 20:40   ` Jeff Law
2016-03-22 10:22     ` Richard Biener
2016-04-28 19:35       ` Jeff Law
2016-04-29  8:06         ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).