[ros-dev] Prevent boolean flags from being optimized away by compiler
Dmitry Gorbachev
d.g.gorbachev at gmail.com
Thu Jul 3 02:23:11 CEST 2008
Hi,
Something else: there are two FORCEINLINE functions in
ntoskrnl/include/internal/ntoskrnl.h, DefaultSetInfoBufferCheck() and
DefaultQueryInfoBufferCheck(), but they cannot be inlined because of SEH
(i.e. setjmp/longjmp).
Timo Kreuzer wrote:
> What about wrapping the _SEH_TRY part in a local inline function? In my
> tests this successfully prevented the variables from being optimized away.
> At least under normal optimisation settings.
More information about the Ros-dev
mailing list