[Webkit-unassigned] [Bug 126703] Fix alignment in data section allocator.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 10 08:58:40 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=126703
--- Comment #3 from Peter Molnar <pmolnar.u-szeged at partner.samsung.com> 2014-01-10 08:56:22 PST ---
I got into this one when trying to allocate with alignment of 16. In this case, both the old, and the suggested new version allocates 2 LSectionWords, so in this case the code works OK, but the assertion is triggered.
But, suppose we wanted to allocate 15 or 17 with alignment of 16.
In case of 15, both calculations yield 2 LSectionWords, which is good, but in case of 17, the old one yields 3 LSectionWords, which is not aligned to 16, but the suggested new calculation yields 4 LSectionWords which is the correct version I think.
It can't see why the new code "fails to align allocations to the requested alignment except if that alignment is LSectionWord". Can you please explain this, or give an example?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list