List:Commits« Previous MessageNext Message »
From:Hakan Kuecuekyilmaz Date:June 5 2008 3:51pm
Subject:Re: commit into mysql-6.0-falcon:mysql-6.0-falcon branch
(olav:2692)
View as plain text  
On Do, 2008-06-05 at 13:41 +0000, Olav Sandstaa wrote:
> #At bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-6.0-falcon/
> 
>  2692 Olav Sandstaa	2008-06-05
>       Fix to one of the issues in Bug #36745 falcon crash on solaris
>       
>       The problem was a memory alignment issue in SymbolManager.cpp that caused 
>       a crash when running in 64 bit mode on Solaris on SPARC. Fixed this 
>       by ensuring the symbol objects are allocated at 8 byte boundaries
>       when compiling for 64 bit systems.
> modified:
>   storage/falcon/SymbolManager.cpp
> 
> per-file comments:
>   storage/falcon/SymbolManager.cpp
>     Allocate symbol object with 4 or 8 byte allignement depending on the build being
> for 32 bit or 64 bit architectures.
> 
> === modified file 'storage/falcon/SymbolManager.cpp'
> --- a/storage/falcon/SymbolManager.cpp	2007-09-20 15:44:25 +0000
> +++ b/storage/falcon/SymbolManager.cpp	2008-06-05 13:41:27 +0000
> @@ -124,7 +124,7 @@
>  
>  	sync.unlock();
>  	sync.lock (Exclusive);
> -	symbol = (Symbol*) ((IPTR)(next + 3) & ~3);
> +	symbol = (Symbol*) (ROUNDUP(((IPTR)(next)), sizeof(void*)));// adr alignment
>  	IPTR length = p - string;

Olav, please check our Falcon coding style regarding comments at:

http://forge.mysql.com/wiki/MySQL_Internals_Coding_Guidelines#C.2B.2B_Coding_Guidelines_of_Falcon_storage_engine

The coding style is not covered in full, but I think that almost all
comments are above the code line in question.


Best regards,

Hakan



-- 
Hakan Küçükyılmaz, Senior Software Engineer DBTG/MySQL +49 160
98953296
Sun Microsystems GmbH     Sonnenallee 1, DE-85551 Kirchheim-Heimstetten
Geschaeftsfuehrer:  Thomas Schroeder, Wolfang Engels, Dr. Roland Boemer
Vorsitz d. Aufs.rat.: Martin Haering   HRB MUC 161028     49.011, 8.376

Thread
commit into mysql-6.0-falcon:mysql-6.0-falcon branch (olav:2692) Olav Sandstaa5 Jun
  • Re: commit into mysql-6.0-falcon:mysql-6.0-falcon branch(olav:2692)Hakan Kuecuekyilmaz5 Jun
    • Re: commit into mysql-6.0-falcon:mysql-6.0-falcon branch (olav:2692)Olav Sandstaa6 Jun
      • RE: commit into mysql-6.0-falcon:mysql-6.0-falcon branch (olav:2692)Vladislav Vaintroub6 Jun
  • RE: commit into mysql-6.0-falcon:mysql-6.0-falcon branch (olav:2692) Vladislav Vaintroub5 Jun
    • Re: commit into mysql-6.0-falcon:mysql-6.0-falcon branch (olav:2692)Olav Sandstaa6 Jun