- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings,
I have my own very fast critical section implementation with interlocked intrinsic functions. It seems to be failing.
I guess ICC IPO optimizer should invalidate program/variable state when it encounters interlocked intrinsic function, even when they are volatile and not so.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please elaborate what exactly is failing? A test case would do nicely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using MSVC's functions like "InterlockedIncrement(&m_lock_cnt);" which are opaque so compiler should assume that state was changed. Anyway, it was either a bug in ICC 15, or in my code.
However the latest update of ICC 15 is working perfectly, and the problem disappeared.
Please, disregard this issue.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page