[webkit-dev] String 4-byte alignment issue

Darin Adler darin at apple.com
Fri Nov 13 12:55:01 PST 2009


On Nov 13, 2009, at 11:45 AM, Yong Li wrote:

> There're 2 ways to fix this:
>  
> 1. let StringImpl::create(UString...) create new copy if UString::data() is not aligned to 4 bytes.
>  
> 2. remove dependencies on 4-byte aligment of String::characters(), probably just with #ifdef...
>  
> Which one is better solution?

I think (2) is better. Comments in the bug.

    -- Darin



More information about the webkit-dev mailing list