ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.15 by tim, Wed Aug 6 18:22:09 2003 UTC vs.
Revision 1.16 by tim, Fri Aug 8 20:05:07 2003 UTC

# Line 291 | Line 291 | public class ConcurrentHashMap<K, V> ext
291                  if (c > threshold)
292                      setTable(rehash(tab));
293                  return null;
294 <            }
295 <            finally {
294 >            } finally {
295                  unlock();
296              }
297          }
# Line 393 | Line 392 | public class ConcurrentHashMap<K, V> ext
392                  tab[index] = newFirst;
393                  count = c-1; // write-volatile
394                  return oldValue;
395 <            }
397 <            finally {
395 >            } finally {
396                  unlock();
397              }
398          }
# Line 406 | Line 404 | public class ConcurrentHashMap<K, V> ext
404                  for (int i = 0; i < tab.length ; i++)
405                      tab[i] = null;
406                  count = 0; // write-volatile
407 <            }
410 <            finally {
407 >            } finally {
408                  unlock();
409              }
410          }
# Line 1015 | Line 1012 | public class ConcurrentHashMap<K, V> ext
1012                          s.writeObject(e.value);
1013                      }
1014                  }
1015 <            }
1019 <            finally {
1015 >            } finally {
1016                  seg.unlock();
1017              }
1018          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines