diff options
author | Francisco Jerez <[email protected]> | 2013-09-20 16:29:48 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2013-10-01 17:30:51 -0700 |
commit | ddd694293ad610f8ef80750d0f50e97d4909fb53 (patch) | |
tree | 2e45b31ec13a523c1fb61b2a76c58de3bc13260b /autogen.sh | |
parent | fde23b61a996b0f3348f20e7636253465822aca1 (diff) |
i965: Initialize all member variables of cfg_t on construction.
The cfg_t object relies on the memory allocator zeroing out its
contents before it's initialized, which is quite an unusual practice
in the C++ world because it ties objects to some specific allocation
scheme, and gives unpredictable results when an object is created with
a different allocator -- Stack allocation, array allocation, or
aggregation inside a different object are some of the useful
possibilities that come to my mind. Initialize all fields from the
constructor and stop using the zeroing allocator.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions