You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some variables within CommandHandler and RedisChannelHandler are accessed multi-threaded:
RedisChannelHandler.active
RedisChannelHandler.closed
CommandHandler.closed
CommandHandler.connected
CommandHandler.channel
In certain constellations, updates are not visible to other threads and this leads to broken states (connection.close() but active=true or closed=false).
Goal: Prevent races/visibility issues
The text was updated successfully, but these errors were encountered:
mp911de
changed the title
Synchronization/cross thread visibility
Synchronization/cross thread visibility of variables
Jul 1, 2015
Unify connection state tracking into one field (lifecycleState) to prevent race conditions when reading the state. Use synchronized blocks to adopt JMM semantics and address thread visibility issues
Synchronization/cross thread visibility of variables #94
- Unify connection state tracking into one field (lifecycleState) to prevent race conditions when reading the state. Use synchronized blocks to adopt JMM semantics and address thread visibility issues
Some variables within
CommandHandler
andRedisChannelHandler
are accessed multi-threaded:In certain constellations, updates are not visible to other threads and this leads to broken states (connection.close() but active=true or closed=false).
Goal: Prevent races/visibility issues
The text was updated successfully, but these errors were encountered: