List:Commits« Previous MessageNext Message »
From:Kelly Long Date:March 31 2009 5:33pm
Subject:bzr commit into mysql-6.0-falcon-team branch (k.long:3088) Bug#43942
View as plain text  
#At file:///FC/MYSQL/wa-2008-BZR/lcl/mysql-6.0-falcon-team-stock/ based on revid:olav@stripped

 3088 Kelly Long	2009-03-31
      Fix for Bug #43942 - keep compiler optimization from removing a 'noop' loop
      	that we use for a delay
      Initial  tests with SyncObjectTest show this is a gain in most situations.
      I'll run some DBT2 tests to see what the impact will be on benchmarks.

    M  storage/falcon/SyncObject.cpp
=== modified file 'storage/falcon/SyncObject.cpp'
--- a/storage/falcon/SyncObject.cpp	2009-02-23 22:42:36 +0000
+++ b/storage/falcon/SyncObject.cpp	2009-03-31 17:30:27 +0000
@@ -1111,7 +1111,7 @@ int SyncObject::getCollisionCount(void)
 void SyncObject::backoff(Thread* thread)
 {
 	//thread->sleep(1);
-	int a = 0;
+	volatile int a = 0;
 
 	for (int n = 0; n < thread->backoff; ++n)
 		++a;


Attachment: [text/bzr-bundle] bzr/k.long@sun.com-20090331173027-orwhbrmd7ima50og.bundle
Thread
bzr commit into mysql-6.0-falcon-team branch (k.long:3088) Bug#43942Kelly Long31 Mar
  • Re: bzr commit into mysql-6.0-falcon-team branch (k.long:3088)Bug#43942Davi Arnaut31 Mar