Fixed Java aligned allocation.