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] |
This patch skips execution of memtransfer/memset if there actually isn't anything to do. Calls to memcpy/memmove/memset with size==0 should be rare I'd suppose but prior code would still treat this no-op like some store (ml_wt was particularly bad: it would to acquire _all_ locks in such a case due to calculating a correct exclusive upper bound anymore). OK for trunk? 4.7 too?
Attachment:
patch1
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |