[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r39997 - trunk/tools/server-side

From: Philip Martin <philip_at_codematters.co.uk>
Date: Wed, 14 Oct 2009 10:38:08 +0100

Branko Cibej <brane_at_xbc.nu> writes:

> struct. Yes, there can be padding, and yes, using (apr_p)calloc to
> allocate the struct avoids hashing random padding bits.

Is that correct? When code writes to a struct can it change the
padding bits? I'm not aware of any requirement on the compiler to
avoid changing those bits. Consider a machine where writing 32-bit
values is faster than writing smaller values: a compiler may choose to
use 32-bit writes to change a 16-bit value when the other 16-bits are
padding; the padding bits would then get random values.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2407466
Received on 2009-10-14 11:38:36 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.