Message232209
Windows provides:
void * _aligned_malloc(
size_t size,
size_t alignment
);
http://msdn.microsoft.com/en-US/library/8z34s9c6%28v=vs.80%29.aspx
How should we handle platforms which don't provide a memory allocator with an alignment? The simplest option is to return NULL (MemoryError).
Allocating more memory and skip first bytes may work, but how do we retrieve the original address if the function releasing the memory block?
What about Solaris, Mac OS X, FreeBSD, etc. |
|
Date |
User |
Action |
Args |
2014-12-05 21:20:21 | vstinner | set | recipients:
+ vstinner, tim.peters, rhettinger, pitrou, njs, neologix |
2014-12-05 21:20:21 | vstinner | set | messageid: <1417814421.42.0.36851356357.issue18835@psf.upfronthosting.co.za> |
2014-12-05 21:20:21 | vstinner | link | issue18835 messages |
2014-12-05 21:20:21 | vstinner | create | |
|