Fix unsynchronized access to marks 18/22018/1
authorRobert Varga <rovarga@cisco.com>
Sat, 6 Jun 2015 01:17:38 +0000 (03:17 +0200)
committerRobert Varga <rovarga@cisco.com>
Sat, 6 Jun 2015 01:19:43 +0000 (03:19 +0200)
commit06068449350ddee54597a38db39c678f93fe2ab3
tree44df71ceaca65febb728e30505d9d9ac69d5b769
parent9930a5d6b7cfeed87e4e3308882b5375bea10f59
Fix unsynchronized access to marks

We must not iterate over marks while not holding the lock, as we risk a
concurrent modification. Mkae sure we synchronize properly.

Also minimize the synchronized sections around flowRegistry. These will
be removed in the next patchset.

Change-Id: I5575fa972aea6d8055d578da2d3418c25286668d
Signed-off-by: Robert Varga <rovarga@cisco.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/registry/flow/DeviceFlowRegistryImpl.java