Adding new fields into class task_prefix

Adding new fields into class task_prefix

Hello~

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?

Dennis

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.