[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aligned blocks management: obsolete?

From: Dmitry Antipov
Subject: Re: Aligned blocks management: obsolete?
Date: Wed, 20 Jun 2012 17:54:38 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

On 06/20/2012 04:48 PM, Stefan Monnier wrote:

I'm not completely sure the test is sufficiently thorough to catch all
problems, and more importantly it doesn't test the efficiency
of memalign.

If it's just a matter of configure test, different methods may be used.
For example, attached code checks whether memalign tends to create holes
while allocating (1024 - 8) blocks aligned at 1024-bytes boundary; optimal
pad (BLOCK_PADDING in current code) may be detected with the similar way.


Attachment: test-memalign.c
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]