Branch: Tag:

2016-06-13

2016-06-13 17:24:55 by Per Hedbor <ph@opera.com>

Made array struct 8 bytes smaller on 64 bit machines by decreasing padding.

27:   PMOD_EXPORT struct array empty_array=   {    PIKE_CONSTANT_MEMOBJ_INIT(1, PIKE_T_ARRAY), /* Never free */ -  &weak_empty_array, /* Next */ -  0, /* previous */ +     0, /* Size = 0 */    0, /* malloced Size = 0 */    0, /* no types */    0, /* no flags */ -  +  &weak_empty_array, /* Next */ +  0, /* previous */    empty_array.real_item, /* Initialize the item pointer. */    {SVALUE_INIT_FREE},   };
40:   /** The empty weak array. */   PMOD_EXPORT struct array weak_empty_array=   { -  PIKE_CONSTANT_MEMOBJ_INIT(1, PIKE_T_ARRAY), -  0, &empty_array, 0, 0, 0, ARRAY_WEAK_FLAG, -  weak_empty_array.real_item, +  PIKE_CONSTANT_MEMOBJ_INIT(1, PIKE_T_ARRAY), /* Never free */ +  0, /* Size = 0 */ +  0, /* malloced Size = 0 */ +  0, /* no types */ +  ARRAY_WEAK_FLAG, /* weak */ +  0, /* next */ +  &empty_array, /* previous */ +  weak_empty_array.real_item, /* Initialize the item pointer. */    {SVALUE_INIT_FREE},   };