HomeFreeBSD

The FILE structure has a mbstate_t in it. This structure needs to be

Description

The FILE structure has a mbstate_t in it. This structure needs to be
aligned on a int64_t boundary. However, when we allocate the array of
these structures, we use ALIGNBYTES which defaults to sizeof(int) on
arm, i386 and others. The i386 stuff can handle unaligned accesses
seemlessly. However, arm cannot. Take this into account when creating
the array of FILEs, and add some comments about why.

Differential Revision: https://reviews.freebsd.org/D4708

Details

Provenance
impAuthored on Dec 27 2015, 11:04 PM
Parents
rG728a11691158: There's currently some issues with armv7-class of CPUs code generation
Branches
Unknown
Tags
Unknown

Event Timeline