MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:vasil.dimov Date:December 2 2010 8:37am
Subject:bzr commit into mysql-5.5-innodb branch (vasil.dimov:3251)
View as plain text  
#At file:///usr/local/devel/bzrroot/server/mysql-5.5-innodb/ based on revid:marko.makela@stripped

 3251 Vasil Dimov	2010-12-02
      Use "rep; nop" in InnoDB if it is available and "pause" is not

=== modified file 'storage/innobase/include/ut0ut.h'
--- a/storage/innobase/include/ut0ut.h	revid:marko.makela@stripped
+++ b/storage/innobase/include/ut0ut.h	revid:vasil.dimov@stripped
@@ -61,6 +61,8 @@ typedef time_t	ib_time_t;
    Also asm volatile may trigger a memory barrier (spilling all registers
    to memory). */
 #  define UT_RELAX_CPU() __asm__ __volatile__ ("pause")
+#  define UT_RELAX_CPU() __asm__ __volatile__ ("rep; nop")
 #elif defined(HAVE_ATOMIC_BUILTINS)
 #  define UT_RELAX_CPU() do { \
      volatile lint	volatile_var; \

Attachment: [text/bzr-bundle] bzr/
bzr commit into mysql-5.5-innodb branch (vasil.dimov:3251) vasil.dimov2 Dec