8 |
|
import java.util.concurrent.locks.*; |
9 |
|
import java.util.*; |
10 |
|
import java.io.Serializable; |
11 |
– |
import java.io.IOException; |
12 |
– |
import java.io.ObjectInputStream; |
13 |
– |
import java.io.ObjectOutputStream; |
11 |
|
|
12 |
|
/** |
13 |
|
* A hash table supporting full concurrency of retrievals and |
1394 |
|
* for each key-value mapping, followed by a null pair. |
1395 |
|
* The key-value mappings are emitted in no particular order. |
1396 |
|
*/ |
1397 |
< |
private void writeObject(java.io.ObjectOutputStream s) throws IOException { |
1397 |
> |
private void writeObject(java.io.ObjectOutputStream s) |
1398 |
> |
throws java.io.IOException { |
1399 |
|
// force all segments for serialization compatibility |
1400 |
|
for (int k = 0; k < segments.length; ++k) |
1401 |
|
ensureSegment(k); |
1429 |
|
*/ |
1430 |
|
@SuppressWarnings("unchecked") |
1431 |
|
private void readObject(java.io.ObjectInputStream s) |
1432 |
< |
throws IOException, ClassNotFoundException { |
1432 |
> |
throws java.io.IOException, ClassNotFoundException { |
1433 |
|
s.defaultReadObject(); |
1434 |
|
|
1435 |
|
// Re-initialize segments to be minimally sized, and let grow. |