Adding new fields into class task_prefix

Adding new fields into class task_prefix


I am trying to add some variables into the task_prefix class.
According to the comment in the task.h, fields are ordered in way that preserves backwards compatibility and yields good packing on typical 32-bit and 64-bit platforms.

I have already added one integer variable and found nothing wrong.
However, after adding another boolean variable, the small program I write crashes due to the segmentation fault.
Could anyone tell me how to add variable into task_prefix class safely?


1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.