From: Mathieu Desnoyers Date: Sat, 27 May 2017 13:14:41 +0000 (+0200) Subject: Calculate context length outside of retry loop X-Git-Tag: v2.11.0-rc1~56 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=e56bb47c3af00db3bc9e2dea711bef4882e6ef4c;hp=e56bb47c3af00db3bc9e2dea711bef4882e6ef4c;p=lttng-ust.git Calculate context length outside of retry loop Allow context length calculation to have side-effects which trigger event tracing by moving the calculation outside of the buffer space reservation retry loop. This also paves the way to have dynamically sized contexts in lttng-ust, which would expect to put their size of the internal stack. Note that the context length calculation is performed *after* the event payload field length calculation, so the stack needs to be used accordingly. Currently, the only dynamically sized contexts we have are provided by Java integration, which keeps its own stack. Signed-off-by: Mathieu Desnoyers ---