[Openib-windows] Creating shared memory for performance counters

Fabian Tillier ftillier at silverstorm.com
Thu May 25 10:43:39 PDT 2006


Hi Tzachi,

On 5/25/06, Tzachi Dar <tzachid at mellanox.co.il> wrote:
>
> Hi Fab,
>
> In the function IBSPPmInit the code checks if this shared memory was just
> created by using
>
> just_created = (GetLastError() != ERROR_ALREADY_EXISTS);
>
> However, as localfree might change the GetLastError value, this line should
> be moved two lines up (Just after CreateFileMapping).

I think the current code will work because if we get that far,
LocalFree must succeed (unless we have serious memory corruption).
Never the less, your suggestion is certainly more correct.  Would you
mind making the change and committing it?

Thanks,

- Fab



More information about the ofw mailing list