Updates:
        Cc: de...@chromium.org

Comment #29 on issue 28749 by e...@chromium.org: gcc 4.4-specific renderer  
crash in malloc, memory corruption while loading plugins (?)
http://code.google.com/p/chromium/issues/detail?id=28749

Why not set no_strict_aliasing=1?  It seems that not setting it has caused  
continuous
problems.

With the warning found in comment 24, the bad code is:
     Type* instance = reinterpret_cast<Type*>(&buf_);
Which most definitely is violating strict-aliasing rules.

You might be able to change the decl of buf_ to something like
   union {
     int8 buf_[sizeof(Type)];
     Type instance_;
   }
but I think that may cause constructors etc. to run which defeats the  
purpose of this
object.

This LazyInstance stuff is really subtle.  I wish we didn't use it.  :(

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

-- 
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs

Reply via email to