[Mesa-dev] [PATCH] glsl/list: Note that exec_lists may not be realloc'd.

Kenneth Graunke kenneth at whitecape.org
Tue Feb 3 01:34:52 PST 2015


On Monday, February 02, 2015 05:28:37 PM Matt Turner wrote:
> ---
>  src/glsl/list.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/glsl/list.h b/src/glsl/list.h
> index 85368a4..6f1a57b 100644
> --- a/src/glsl/list.h
> +++ b/src/glsl/list.h
> @@ -51,6 +51,10 @@
>   * Therefore, if \c head->next is \c NULL or \c tail_prev->prev is \c NULL,
>   * the list is empty.
>   *
> + * Do note that this means that the list nodes will contain pointers into the
> + * list structure itself and as a result you may not \c realloc() an  \c
> + * exec_list or any instructure in which an \c exec_list is embedded.
> + *
>   * To anyone familiar with "exec lists" on the Amiga, this structure should
>   * be immediately recognizable.  See the following link for the original Amiga
>   * operating system documentation on the subject.
> 

Thanks for leaving a comment to try and warn people in the future.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150203/201d78f1/attachment-0001.sig>


More information about the mesa-dev mailing list