This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, MELT] fix useless forcing of GCC garbage collector


This patch is for the MELT branch.

My GCC contributor number is 634276.

After speaking with Basile Starynkevitch, we saw that there might be a useless forcing of the garbage collector in melt-runtime.c . I tested with the patch, and I haven't seen any problem (I could compile GCC, using a MELT plugin with the patched version).
I have also measured a small time improvement while compiling the file gcc.c (which is more that 8000 lines):


Whithout the modification:
user 	sys
1.563 	0.145s

With  the modification:
user 	sys
1.144  0.106s


Changelog:


2011-05-09 Pierre Vittet <piervit@pvittet.com>

* melt-runtime.c: Remove variable forcing the garbage collector while it was not needed.

Thanks

Pierre Vittet

Attachment: not_forcing_garbcoll_call.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]