You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by pe...@apache.org on 2010/07/31 08:34:51 UTC

svn commit: r981010 - /incubator/river/jtsk/trunk/src/org/apache/river/imp/util/

Author: peter_firmstone
Date: Sat Jul 31 06:34:51 2010
New Revision: 981010

URL: http://svn.apache.org/viewvc?rev=981010&view=rev
Log:
River-26 Changed the behaviour of ConcurrentPermissions to prevent the Enumeration<Permission> returned by elements() from throwing a ConcurrentModificationException, while the underlying associated PermissionCollection is being modified.  This behaviour was changed to enable UmbrellaGrant's to be added to DynamicConcurrentPolicyProvider.  GrantPermission's PermissionCollection had to be changed to not add duplicate GrantPermission's, this was part of the UmbrellaGrantPermission addition.

MultiReadPermissionCollection was changed to incorporate an elements cache to prevent the underlying PermissionCollection causing the Enumerator from throwing the ConcurrentModificationException when add was called concurrently.

MergedPolicyProvider had synchronization removed, the synchronization was added temporarily to assist in solving some earlier implementation concurrency bugs.

Modified:
    incubator/river/jtsk/trunk/src/org/apache/river/imp/util/   (props changed)

Propchange: incubator/river/jtsk/trunk/src/org/apache/river/imp/util/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Jul 31 06:34:51 2010
@@ -1,3 +1,5 @@
 RunnableManager.java
 RunnableDep.java
+Transaction.java
 RunnableDepHelper.java
+TransactionUnit.java