However, this is only the current revision of the sources. Previous iterations might be slightly different, and future ones as well. I.e. treat this as an implementation detail, not a guarantee.
Generally speaking, any allocator *must* return an 8-byte aligned address if the requested size is >= 8 (otherwise lots of things would break, because malloc() doesn't know if the caller is going to store 8-byte aligned values like doubles in the corresponding memory block).
It's what happens for sizes < 8 that could change, and I could easily imagine an allocator implementation that would want to "optimize" these allocations into smaller aligned slots (e.g. in larger page-allocated pools), so I would _not_ rule that out for this case.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.