nm.java
15.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
import com.google.common.base.Equivalence;
import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.google.common.collect.MapMaker;
import com.google.common.collect.MapMaker.d;
import com.google.common.collect.MapMaker.e;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.ref.ReferenceQueue;
import java.util.Queue;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.atomic.AtomicReferenceArray;
import javax.annotation.Nullable;
import javax.annotation.concurrent.GuardedBy;
public class nm<K, V>
extends pc<K, V>
{
private static final long serialVersionUID = 4L;
protected final Function<? super K, ? extends V> a;
protected nm(MapMaker paramMapMaker, Function<? super K, ? extends V> paramFunction)
{
super(paramMapMaker);
this.a = ((Function)Preconditions.checkNotNull(paramFunction));
}
private nm.c<K, V> b(int paramInt)
{
return (nm.c)super.a(paramInt);
}
protected final V a(K paramK)
throws ExecutionException
{
int i = b(Preconditions.checkNotNull(paramK));
return (V)b(i).a(paramK, i, this.a);
}
final pc.m<K, V> a(int paramInt1, int paramInt2)
{
return new nm.c(this, paramInt1, paramInt2);
}
Object writeReplace()
{
return new nm.d(this.i, this.j, this.g, this.h, this.m, this.l, this.k, this.f, this.o, this, this.a);
}
static final class a<K, V>
implements pc.w<K, V>
{
final Throwable a;
a(Throwable paramThrowable)
{
this.a = paramThrowable;
}
public final pc.l<K, V> a()
{
return null;
}
public final pc.w<K, V> a(ReferenceQueue<V> paramReferenceQueue, V paramV, pc.l<K, V> paraml)
{
return this;
}
public final void a(pc.w<K, V> paramw) {}
public final boolean b()
{
return false;
}
public final V c()
throws ExecutionException
{
throw new ExecutionException(this.a);
}
public final V get()
{
return null;
}
}
static final class b<K, V>
implements pc.w<K, V>
{
final V a;
b(@Nullable V paramV)
{
this.a = paramV;
}
public final pc.l<K, V> a()
{
return null;
}
public final pc.w<K, V> a(ReferenceQueue<V> paramReferenceQueue, V paramV, pc.l<K, V> paraml)
{
return this;
}
public final void a(pc.w<K, V> paramw) {}
public final boolean b()
{
return false;
}
public final V c()
{
return (V)get();
}
public final V get()
{
return (V)this.a;
}
}
static final class c<K, V>
extends pc.m<K, V>
{
c(pc<K, V> parampc, int paramInt1, int paramInt2)
{
super(paramInt1, paramInt2);
}
/* Error */
private V a(K paramK, int paramInt, pc.l<K, V> paraml, nm.e<K, V> parame)
throws ExecutionException
{
// Byte code:
// 0: aconst_null
// 1: astore 9
// 3: aconst_null
// 4: astore 10
// 6: invokestatic 25 java/lang/System:nanoTime ()J
// 9: pop2
// 10: aload_3
// 11: monitorenter
// 12: aload 4
// 14: aload_1
// 15: invokevirtual 30 nm$e:a (Ljava/lang/Object;)Ljava/lang/Object;
// 18: astore 9
// 20: aload 9
// 22: astore 10
// 24: invokestatic 25 java/lang/System:nanoTime ()J
// 27: lstore 5
// 29: aload 9
// 31: astore 10
// 33: lload 5
// 35: lstore 7
// 37: aload_3
// 38: monitorexit
// 39: aload 9
// 41: ifnull +39 -> 80
// 44: aload 9
// 46: astore_3
// 47: lload 5
// 49: lstore 7
// 51: aload_0
// 52: aload_1
// 53: iload_2
// 54: aload 9
// 56: iconst_1
// 57: invokevirtual 33 nm$c:a (Ljava/lang/Object;ILjava/lang/Object;Z)Ljava/lang/Object;
// 60: ifnull +20 -> 80
// 63: aload 9
// 65: astore_3
// 66: lload 5
// 68: lstore 7
// 70: aload_0
// 71: aload_1
// 72: aload 9
// 74: getstatic 39 com/google/common/collect/MapMaker$d:b Lcom/google/common/collect/MapMaker$d;
// 77: invokevirtual 42 nm$c:a (Ljava/lang/Object;Ljava/lang/Object;Lcom/google/common/collect/MapMaker$d;)V
// 80: lload 5
// 82: lconst_0
// 83: lcmp
// 84: ifne +7 -> 91
// 87: invokestatic 25 java/lang/System:nanoTime ()J
// 90: pop2
// 91: aload 9
// 93: ifnonnull +12 -> 105
// 96: aload_0
// 97: aload_1
// 98: iload_2
// 99: aload 4
// 101: invokevirtual 45 nm$c:a (Ljava/lang/Object;ILpc$w;)Z
// 104: pop
// 105: aload 9
// 107: areturn
// 108: astore 11
// 110: lconst_0
// 111: lstore 5
// 113: aload 10
// 115: astore 9
// 117: aload 9
// 119: astore 10
// 121: lload 5
// 123: lstore 7
// 125: aload_3
// 126: monitorexit
// 127: aload 9
// 129: astore_3
// 130: lload 5
// 132: lstore 7
// 134: aload 11
// 136: athrow
// 137: astore 10
// 139: aload_3
// 140: astore 9
// 142: aload 10
// 144: astore_3
// 145: lload 7
// 147: lconst_0
// 148: lcmp
// 149: ifne +7 -> 156
// 152: invokestatic 25 java/lang/System:nanoTime ()J
// 155: pop2
// 156: aload 9
// 158: ifnonnull +12 -> 170
// 161: aload_0
// 162: aload_1
// 163: iload_2
// 164: aload 4
// 166: invokevirtual 45 nm$c:a (Ljava/lang/Object;ILpc$w;)Z
// 169: pop
// 170: aload_3
// 171: athrow
// 172: astore_3
// 173: lconst_0
// 174: lstore 7
// 176: goto -31 -> 145
// 179: astore 11
// 181: aload 10
// 183: astore 9
// 185: lload 7
// 187: lstore 5
// 189: goto -72 -> 117
// Local variable table:
// start length slot name signature
// 0 192 0 this c
// 0 192 1 paramK K
// 0 192 2 paramInt int
// 0 192 3 paraml pc.l<K, V>
// 0 192 4 parame nm.e<K, V>
// 27 161 5 l1 long
// 35 151 7 l2 long
// 1 183 9 localObject1 Object
// 4 116 10 localObject2 Object
// 137 45 10 localObject3 Object
// 108 27 11 localObject4 Object
// 179 1 11 localObject5 Object
// Exception table:
// from to target type
// 12 20 108 finally
// 24 29 108 finally
// 51 63 137 finally
// 70 80 137 finally
// 134 137 137 finally
// 10 12 172 finally
// 37 39 179 finally
// 125 127 179 finally
}
final V a(K paramK, int paramInt, Function<? super K, ? extends V> paramFunction)
throws ExecutionException
{
for (;;)
{
Object localObject3;
Object localObject4;
try
{
localObject2 = a(paramK, paramInt);
if (localObject2 != null)
{
localObject1 = c((pc.l)localObject2);
if (localObject1 != null)
{
a((pc.l)localObject2);
return (V)localObject1;
}
}
if (localObject2 != null)
{
localObject1 = localObject2;
if (((pc.l)localObject2).a().b()) {
break label427;
}
}
lock();
try
{
b();
i = this.b;
AtomicReferenceArray localAtomicReferenceArray = this.e;
int j = paramInt & localAtomicReferenceArray.length() - 1;
localObject2 = (pc.l)localAtomicReferenceArray.get(j);
localObject1 = localObject2;
if (localObject1 == null) {
break label489;
}
localObject3 = ((pc.l)localObject1).d();
if ((((pc.l)localObject1).c() != paramInt) || (localObject3 == null) || (!this.a.g.equivalent(paramK, localObject3))) {
break label399;
}
if (((pc.l)localObject1).a().b())
{
i = 0;
if (i == 0) {
break label483;
}
localObject3 = new nm.e(paramFunction);
if (localObject1 != null) {
break label411;
}
localObject1 = a(paramK, paramInt, (pc.l)localObject2);
((pc.l)localObject1).a((pc.w)localObject3);
localAtomicReferenceArray.set(j, localObject1);
localObject2 = localObject3;
unlock();
c();
if (i == 0) {
break label427;
}
paramK = a(paramK, paramInt, (pc.l)localObject1, (nm.e)localObject2);
return paramK;
}
localObject4 = ((pc.l)localObject1).a().get();
if (localObject4 == null)
{
a(localObject3, localObject4, MapMaker.d.c);
this.k.remove(localObject1);
this.l.remove(localObject1);
this.b = (i - 1);
i = 1;
continue;
}
if ((this.a.b()) && (this.a.a((pc.l)localObject1)))
{
a(localObject3, localObject4, MapMaker.d.d);
continue;
paramK = finally;
}
}
finally
{
unlock();
}
b((pc.l)localObject1);
}
finally
{
a();
}
unlock();
c();
a();
return (V)localObject4;
label399:
Object localObject1 = ((pc.l)localObject1).b();
continue;
label411:
((pc.l)localObject1).a((pc.w)localObject3);
Object localObject2 = localObject3;
continue;
label427:
if (!Thread.holdsLock(localObject1)) {}
for (boolean bool = true;; bool = false)
{
Preconditions.checkState(bool, "Recursive computation");
localObject2 = ((pc.l)localObject1).a().c();
if (localObject2 == null) {
break;
}
a((pc.l)localObject1);
a();
return (V)localObject2;
}
label483:
localObject2 = null;
continue;
label489:
int i = 1;
}
}
}
static final class d<K, V>
extends pc.b<K, V>
{
private static final long serialVersionUID = 4L;
final Function<? super K, ? extends V> a;
d(pc.p paramp1, pc.p paramp2, Equivalence<Object> paramEquivalence1, Equivalence<Object> paramEquivalence2, long paramLong1, long paramLong2, int paramInt1, int paramInt2, MapMaker.e<? super K, ? super V> parame, ConcurrentMap<K, V> paramConcurrentMap, Function<? super K, ? extends V> paramFunction)
{
super(paramp2, paramEquivalence1, paramEquivalence2, paramLong1, paramLong2, paramInt1, paramInt2, parame, paramConcurrentMap);
this.a = paramFunction;
}
private void readObject(ObjectInputStream paramObjectInputStream)
throws IOException, ClassNotFoundException
{
paramObjectInputStream.defaultReadObject();
this.k = a(paramObjectInputStream).a(this.a);
b(paramObjectInputStream);
}
private void writeObject(ObjectOutputStream paramObjectOutputStream)
throws IOException
{
paramObjectOutputStream.defaultWriteObject();
a(paramObjectOutputStream);
}
final Object readResolve()
{
return this.k;
}
}
static final class e<K, V>
implements pc.w<K, V>
{
final Function<? super K, ? extends V> a;
@GuardedBy("ComputingValueReference.this")
volatile pc.w<K, V> b = pc.f();
public e(Function<? super K, ? extends V> paramFunction)
{
this.a = paramFunction;
}
private void b(pc.w<K, V> paramw)
{
try
{
if (this.b == pc.r)
{
this.b = paramw;
notifyAll();
}
return;
}
finally {}
}
final V a(K paramK)
throws ExecutionException
{
try
{
paramK = this.a.apply(paramK);
b(new nm.b(paramK));
return paramK;
}
catch (Throwable paramK)
{
b(new nm.a(paramK));
throw new ExecutionException(paramK);
}
}
public final pc.l<K, V> a()
{
return null;
}
public final pc.w<K, V> a(ReferenceQueue<V> paramReferenceQueue, @Nullable V paramV, pc.l<K, V> paraml)
{
return this;
}
public final void a(pc.w<K, V> paramw)
{
b(paramw);
}
public final boolean b()
{
return true;
}
/* Error */
public final V c()
throws ExecutionException
{
// Byte code:
// 0: aload_0
// 1: getfield 32 nm$e:b Lpc$w;
// 4: getstatic 41 pc:r Lpc$w;
// 7: if_acmpne +52 -> 59
// 10: iconst_0
// 11: istore_1
// 12: iconst_0
// 13: istore_2
// 14: aload_0
// 15: monitorenter
// 16: iload_2
// 17: istore_1
// 18: aload_0
// 19: getfield 32 nm$e:b Lpc$w;
// 22: astore_3
// 23: getstatic 41 pc:r Lpc$w;
// 26: astore 4
// 28: aload_3
// 29: aload 4
// 31: if_acmpne +16 -> 47
// 34: aload_0
// 35: invokevirtual 84 java/lang/Object:wait ()V
// 38: goto -20 -> 18
// 41: astore_3
// 42: iconst_1
// 43: istore_1
// 44: goto -26 -> 18
// 47: aload_0
// 48: monitorexit
// 49: iload_1
// 50: ifeq +9 -> 59
// 53: invokestatic 90 java/lang/Thread:currentThread ()Ljava/lang/Thread;
// 56: invokevirtual 93 java/lang/Thread:interrupt ()V
// 59: aload_0
// 60: getfield 32 nm$e:b Lpc$w;
// 63: invokeinterface 95 1 0
// 68: areturn
// 69: astore_3
// 70: aload_0
// 71: monitorexit
// 72: aload_3
// 73: athrow
// 74: astore_3
// 75: iload_1
// 76: ifeq +9 -> 85
// 79: invokestatic 90 java/lang/Thread:currentThread ()Ljava/lang/Thread;
// 82: invokevirtual 93 java/lang/Thread:interrupt ()V
// 85: aload_3
// 86: athrow
// Local variable table:
// start length slot name signature
// 0 87 0 this e
// 11 65 1 i int
// 13 4 2 j int
// 22 7 3 localw1 pc.w
// 41 1 3 localInterruptedException InterruptedException
// 69 4 3 localObject1 Object
// 74 12 3 localObject2 Object
// 26 4 4 localw2 pc.w
// Exception table:
// from to target type
// 34 38 41 java/lang/InterruptedException
// 18 28 69 finally
// 34 38 69 finally
// 47 49 69 finally
// 70 72 69 finally
// 14 16 74 finally
// 72 74 74 finally
}
public final V get()
{
return null;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/nm.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/