Fix failing assertions in GC on ia32
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 14 Dec 2012 08:46:25 +0000 (09:46 +0100)
committerLars Knoll <lars.knoll@digia.com>
Fri, 14 Dec 2012 12:00:32 +0000 (13:00 +0100)
commit445b4e240210b08679e12ef155163ab2782af6a6
treed686ce79abbe698ee64ffbbdf00b2c02cfd57a86
parentb33c0ab3fa936f236e9873ee91cf5f570b28db36
Fix failing assertions in GC on ia32

We currently round up allocation sizes to 16-bytes on 32 and 64-bit.
When recursively calling alloc() after the allocation of a new heap chunk,
make sure to adjust the requested size parameter again to its original value,
to ensure 16 byte alignment.

Change-Id: Ie8cd29d60639bf43023a310b7be6f772305fa826
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
qv4mm.cpp