ref 1.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -0
  3. data/lib/ref.rb +28 -29
  4. data/lib/ref/abstract_reference_key_map.rb +72 -28
  5. data/lib/ref/abstract_reference_value_map.rb +61 -18
  6. data/lib/ref/reference_queue.rb +8 -8
  7. data/lib/ref/soft_reference.rb +7 -7
  8. data/lib/ref/version.rb +3 -0
  9. data/lib/ref/weak_reference/pure_ruby.rb +9 -9
  10. data/lib/ref_ext.jar +0 -0
  11. metadata +23 -49
  12. data/README.rdoc +0 -40
  13. data/VERSION +0 -1
  14. data/lib/org/jruby/ext/ref/references.jar +0 -0
  15. data/lib/ref/mock.rb +0 -150
  16. data/lib/ref/safe_monitor.rb +0 -50
  17. data/lib/ref/weak_reference/iron_ruby.rb +0 -14
  18. data/test/mock_test.rb +0 -33
  19. data/test/mock_test.rbc +0 -856
  20. data/test/reference_key_map_behavior.rb +0 -155
  21. data/test/reference_key_map_behavior.rbc +0 -4241
  22. data/test/reference_queue_test.rb +0 -60
  23. data/test/reference_queue_test.rbc +0 -1938
  24. data/test/reference_value_map_behavior.rb +0 -135
  25. data/test/reference_value_map_behavior.rbc +0 -3560
  26. data/test/soft_key_map_test.rb +0 -13
  27. data/test/soft_key_map_test.rbc +0 -331
  28. data/test/soft_reference_test.rb +0 -49
  29. data/test/soft_reference_test.rbc +0 -1481
  30. data/test/soft_value_map_test.rb +0 -13
  31. data/test/soft_value_map_test.rbc +0 -331
  32. data/test/strong_reference_test.rb +0 -15
  33. data/test/strong_reference_test.rbc +0 -546
  34. data/test/test_helper.rb +0 -4
  35. data/test/test_helper.rbc +0 -143
  36. data/test/weak_key_map_test.rb +0 -13
  37. data/test/weak_key_map_test.rbc +0 -331
  38. data/test/weak_reference_test.rb +0 -54
  39. data/test/weak_reference_test.rbc +0 -1510
  40. data/test/weak_value_map_test.rb +0 -13
  41. data/test/weak_value_map_test.rbc +0 -331
@@ -1,60 +0,0 @@
1
- require File.expand_path("../test_helper", __FILE__)
2
-
3
- class TestReferenceQueue < Test::Unit::TestCase
4
- def test_can_add_references
5
- queue = Ref::ReferenceQueue.new
6
- ref_1 = Ref::WeakReference.new(Object.new)
7
- ref_2 = Ref::WeakReference.new(Object.new)
8
- assert queue.empty?
9
- assert_equal 0, queue.size
10
- queue.push(ref_1)
11
- queue.push(ref_2)
12
- assert !queue.empty?
13
- assert_equal 2, queue.size
14
- end
15
-
16
- def test_can_remove_references_as_a_queue
17
- queue = Ref::ReferenceQueue.new
18
- ref_1 = Ref::WeakReference.new(Object.new)
19
- ref_2 = Ref::WeakReference.new(Object.new)
20
- queue.push(ref_1)
21
- queue.push(ref_2)
22
- assert_equal ref_1, queue.shift
23
- assert_equal ref_2, queue.shift
24
- assert_nil queue.shift
25
- end
26
-
27
- def test_can_remove_references_as_a_stack
28
- queue = Ref::ReferenceQueue.new
29
- ref_1 = Ref::WeakReference.new(Object.new)
30
- ref_2 = Ref::WeakReference.new(Object.new)
31
- queue.push(ref_1)
32
- queue.push(ref_2)
33
- assert_equal ref_2, queue.pop
34
- assert_equal ref_1, queue.pop
35
- assert_nil queue.pop
36
- end
37
-
38
- def test_references_are_added_when_the_object_has_been_collected
39
- Ref::Mock.use do
40
- obj = Object.new
41
- ref = Ref::WeakReference.new(obj)
42
- queue = Ref::ReferenceQueue.new
43
- queue.monitor(ref)
44
- assert_nil queue.shift
45
- Ref::Mock.gc(obj)
46
- assert_equal ref, queue.shift
47
- end
48
- end
49
-
50
- def test_references_are_added_immediately_if_the_object_has_been_collected
51
- Ref::Mock.use do
52
- obj = Object.new
53
- ref = Ref::WeakReference.new(obj)
54
- Ref::Mock.gc(obj)
55
- queue = Ref::ReferenceQueue.new
56
- queue.monitor(ref)
57
- assert_equal ref, queue.shift
58
- end
59
- end
60
- end
@@ -1,1938 +0,0 @@
1
- !RBIX
2
- 12529030924842180271
3
- x
4
- M
5
- 1
6
- n
7
- n
8
- x
9
- 10
10
- __script__
11
- i
12
- 54
13
- 5
14
- 45
15
- 0
16
- 1
17
- 7
18
- 2
19
- 64
20
- 65
21
- 49
22
- 3
23
- 0
24
- 49
25
- 4
26
- 2
27
- 47
28
- 49
29
- 5
30
- 1
31
- 15
32
- 99
33
- 7
34
- 6
35
- 45
36
- 7
37
- 8
38
- 43
39
- 9
40
- 43
41
- 10
42
- 65
43
- 49
44
- 11
45
- 3
46
- 13
47
- 99
48
- 12
49
- 7
50
- 12
51
- 12
52
- 7
53
- 13
54
- 12
55
- 65
56
- 12
57
- 49
58
- 14
59
- 4
60
- 15
61
- 49
62
- 12
63
- 0
64
- 15
65
- 2
66
- 11
67
- I
68
- 6
69
- I
70
- 0
71
- I
72
- 0
73
- I
74
- 0
75
- n
76
- p
77
- 15
78
- x
79
- 4
80
- File
81
- n
82
- s
83
- 14
84
- ../test_helper
85
- x
86
- 11
87
- active_path
88
- x
89
- 11
90
- expand_path
91
- x
92
- 7
93
- require
94
- x
95
- 18
96
- TestReferenceQueue
97
- x
98
- 4
99
- Test
100
- n
101
- x
102
- 4
103
- Unit
104
- x
105
- 8
106
- TestCase
107
- x
108
- 10
109
- open_class
110
- x
111
- 14
112
- __class_init__
113
- M
114
- 1
115
- n
116
- n
117
- x
118
- 18
119
- TestReferenceQueue
120
- i
121
- 72
122
- 5
123
- 66
124
- 99
125
- 7
126
- 0
127
- 7
128
- 1
129
- 65
130
- 67
131
- 49
132
- 2
133
- 0
134
- 49
135
- 3
136
- 4
137
- 15
138
- 99
139
- 7
140
- 4
141
- 7
142
- 5
143
- 65
144
- 67
145
- 49
146
- 2
147
- 0
148
- 49
149
- 3
150
- 4
151
- 15
152
- 99
153
- 7
154
- 6
155
- 7
156
- 7
157
- 65
158
- 67
159
- 49
160
- 2
161
- 0
162
- 49
163
- 3
164
- 4
165
- 15
166
- 99
167
- 7
168
- 8
169
- 7
170
- 9
171
- 65
172
- 67
173
- 49
174
- 2
175
- 0
176
- 49
177
- 3
178
- 4
179
- 15
180
- 99
181
- 7
182
- 10
183
- 7
184
- 11
185
- 65
186
- 67
187
- 49
188
- 2
189
- 0
190
- 49
191
- 3
192
- 4
193
- 11
194
- I
195
- 5
196
- I
197
- 0
198
- I
199
- 0
200
- I
201
- 0
202
- n
203
- p
204
- 12
205
- x
206
- 23
207
- test_can_add_references
208
- M
209
- 1
210
- n
211
- n
212
- x
213
- 23
214
- test_can_add_references
215
- i
216
- 251
217
- 45
218
- 0
219
- 1
220
- 43
221
- 2
222
- 13
223
- 71
224
- 3
225
- 47
226
- 9
227
- 23
228
- 47
229
- 49
230
- 4
231
- 0
232
- 13
233
- 47
234
- 49
235
- 5
236
- 0
237
- 15
238
- 8
239
- 26
240
- 49
241
- 3
242
- 0
243
- 19
244
- 0
245
- 15
246
- 45
247
- 0
248
- 6
249
- 43
250
- 7
251
- 13
252
- 71
253
- 3
254
- 47
255
- 9
256
- 76
257
- 47
258
- 49
259
- 4
260
- 0
261
- 13
262
- 45
263
- 8
264
- 9
265
- 13
266
- 71
267
- 3
268
- 47
269
- 9
270
- 66
271
- 47
272
- 49
273
- 4
274
- 0
275
- 13
276
- 47
277
- 49
278
- 5
279
- 0
280
- 15
281
- 8
282
- 69
283
- 49
284
- 3
285
- 0
286
- 47
287
- 49
288
- 5
289
- 1
290
- 15
291
- 8
292
- 103
293
- 45
294
- 8
295
- 10
296
- 13
297
- 71
298
- 3
299
- 47
300
- 9
301
- 97
302
- 47
303
- 49
304
- 4
305
- 0
306
- 13
307
- 47
308
- 49
309
- 5
310
- 0
311
- 15
312
- 8
313
- 100
314
- 49
315
- 3
316
- 0
317
- 49
318
- 3
319
- 1
320
- 19
321
- 1
322
- 15
323
- 45
324
- 0
325
- 11
326
- 43
327
- 7
328
- 13
329
- 71
330
- 3
331
- 47
332
- 9
333
- 153
334
- 47
335
- 49
336
- 4
337
- 0
338
- 13
339
- 45
340
- 8
341
- 12
342
- 13
343
- 71
344
- 3
345
- 47
346
- 9
347
- 143
348
- 47
349
- 49
350
- 4
351
- 0
352
- 13
353
- 47
354
- 49
355
- 5
356
- 0
357
- 15
358
- 8
359
- 146
360
- 49
361
- 3
362
- 0
363
- 47
364
- 49
365
- 5
366
- 1
367
- 15
368
- 8
369
- 180
370
- 45
371
- 8
372
- 13
373
- 13
374
- 71
375
- 3
376
- 47
377
- 9
378
- 174
379
- 47
380
- 49
381
- 4
382
- 0
383
- 13
384
- 47
385
- 49
386
- 5
387
- 0
388
- 15
389
- 8
390
- 177
391
- 49
392
- 3
393
- 0
394
- 49
395
- 3
396
- 1
397
- 19
398
- 2
399
- 15
400
- 5
401
- 20
402
- 0
403
- 49
404
- 14
405
- 0
406
- 47
407
- 49
408
- 15
409
- 1
410
- 15
411
- 5
412
- 78
413
- 20
414
- 0
415
- 49
416
- 16
417
- 0
418
- 47
419
- 49
420
- 17
421
- 2
422
- 15
423
- 20
424
- 0
425
- 20
426
- 1
427
- 49
428
- 18
429
- 1
430
- 15
431
- 20
432
- 0
433
- 20
434
- 2
435
- 49
436
- 18
437
- 1
438
- 15
439
- 5
440
- 20
441
- 0
442
- 49
443
- 14
444
- 0
445
- 10
446
- 233
447
- 2
448
- 8
449
- 234
450
- 3
451
- 47
452
- 49
453
- 15
454
- 1
455
- 15
456
- 5
457
- 80
458
- 20
459
- 0
460
- 49
461
- 16
462
- 0
463
- 47
464
- 49
465
- 17
466
- 2
467
- 11
468
- I
469
- 7
470
- I
471
- 3
472
- I
473
- 0
474
- I
475
- 0
476
- n
477
- p
478
- 19
479
- x
480
- 3
481
- Ref
482
- n
483
- x
484
- 14
485
- ReferenceQueue
486
- x
487
- 3
488
- new
489
- x
490
- 8
491
- allocate
492
- x
493
- 10
494
- initialize
495
- n
496
- x
497
- 13
498
- WeakReference
499
- x
500
- 6
501
- Object
502
- n
503
- n
504
- n
505
- n
506
- n
507
- x
508
- 6
509
- empty?
510
- x
511
- 6
512
- assert
513
- x
514
- 4
515
- size
516
- x
517
- 12
518
- assert_equal
519
- x
520
- 4
521
- push
522
- p
523
- 21
524
- I
525
- -1
526
- I
527
- 4
528
- I
529
- 0
530
- I
531
- 5
532
- I
533
- 1d
534
- I
535
- 6
536
- I
537
- 6a
538
- I
539
- 7
540
- I
541
- b7
542
- I
543
- 8
544
- I
545
- c2
546
- I
547
- 9
548
- I
549
- ce
550
- I
551
- a
552
- I
553
- d6
554
- I
555
- b
556
- I
557
- de
558
- I
559
- c
560
- I
561
- ef
562
- I
563
- d
564
- I
565
- fb
566
- x
567
- 60
568
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
569
- p
570
- 3
571
- x
572
- 5
573
- queue
574
- x
575
- 5
576
- ref_1
577
- x
578
- 5
579
- ref_2
580
- x
581
- 17
582
- method_visibility
583
- x
584
- 15
585
- add_defn_method
586
- x
587
- 37
588
- test_can_remove_references_as_a_queue
589
- M
590
- 1
591
- n
592
- n
593
- x
594
- 37
595
- test_can_remove_references_as_a_queue
596
- i
597
- 236
598
- 45
599
- 0
600
- 1
601
- 43
602
- 2
603
- 13
604
- 71
605
- 3
606
- 47
607
- 9
608
- 23
609
- 47
610
- 49
611
- 4
612
- 0
613
- 13
614
- 47
615
- 49
616
- 5
617
- 0
618
- 15
619
- 8
620
- 26
621
- 49
622
- 3
623
- 0
624
- 19
625
- 0
626
- 15
627
- 45
628
- 0
629
- 6
630
- 43
631
- 7
632
- 13
633
- 71
634
- 3
635
- 47
636
- 9
637
- 76
638
- 47
639
- 49
640
- 4
641
- 0
642
- 13
643
- 45
644
- 8
645
- 9
646
- 13
647
- 71
648
- 3
649
- 47
650
- 9
651
- 66
652
- 47
653
- 49
654
- 4
655
- 0
656
- 13
657
- 47
658
- 49
659
- 5
660
- 0
661
- 15
662
- 8
663
- 69
664
- 49
665
- 3
666
- 0
667
- 47
668
- 49
669
- 5
670
- 1
671
- 15
672
- 8
673
- 103
674
- 45
675
- 8
676
- 10
677
- 13
678
- 71
679
- 3
680
- 47
681
- 9
682
- 97
683
- 47
684
- 49
685
- 4
686
- 0
687
- 13
688
- 47
689
- 49
690
- 5
691
- 0
692
- 15
693
- 8
694
- 100
695
- 49
696
- 3
697
- 0
698
- 49
699
- 3
700
- 1
701
- 19
702
- 1
703
- 15
704
- 45
705
- 0
706
- 11
707
- 43
708
- 7
709
- 13
710
- 71
711
- 3
712
- 47
713
- 9
714
- 153
715
- 47
716
- 49
717
- 4
718
- 0
719
- 13
720
- 45
721
- 8
722
- 12
723
- 13
724
- 71
725
- 3
726
- 47
727
- 9
728
- 143
729
- 47
730
- 49
731
- 4
732
- 0
733
- 13
734
- 47
735
- 49
736
- 5
737
- 0
738
- 15
739
- 8
740
- 146
741
- 49
742
- 3
743
- 0
744
- 47
745
- 49
746
- 5
747
- 1
748
- 15
749
- 8
750
- 180
751
- 45
752
- 8
753
- 13
754
- 13
755
- 71
756
- 3
757
- 47
758
- 9
759
- 174
760
- 47
761
- 49
762
- 4
763
- 0
764
- 13
765
- 47
766
- 49
767
- 5
768
- 0
769
- 15
770
- 8
771
- 177
772
- 49
773
- 3
774
- 0
775
- 49
776
- 3
777
- 1
778
- 19
779
- 2
780
- 15
781
- 20
782
- 0
783
- 20
784
- 1
785
- 49
786
- 14
787
- 1
788
- 15
789
- 20
790
- 0
791
- 20
792
- 2
793
- 49
794
- 14
795
- 1
796
- 15
797
- 5
798
- 20
799
- 1
800
- 20
801
- 0
802
- 49
803
- 15
804
- 0
805
- 47
806
- 49
807
- 16
808
- 2
809
- 15
810
- 5
811
- 20
812
- 2
813
- 20
814
- 0
815
- 49
816
- 15
817
- 0
818
- 47
819
- 49
820
- 16
821
- 2
822
- 15
823
- 5
824
- 20
825
- 0
826
- 49
827
- 15
828
- 0
829
- 47
830
- 49
831
- 17
832
- 1
833
- 11
834
- I
835
- 7
836
- I
837
- 3
838
- I
839
- 0
840
- I
841
- 0
842
- n
843
- p
844
- 18
845
- x
846
- 3
847
- Ref
848
- n
849
- x
850
- 14
851
- ReferenceQueue
852
- x
853
- 3
854
- new
855
- x
856
- 8
857
- allocate
858
- x
859
- 10
860
- initialize
861
- n
862
- x
863
- 13
864
- WeakReference
865
- x
866
- 6
867
- Object
868
- n
869
- n
870
- n
871
- n
872
- n
873
- x
874
- 4
875
- push
876
- x
877
- 5
878
- shift
879
- x
880
- 12
881
- assert_equal
882
- x
883
- 10
884
- assert_nil
885
- p
886
- 19
887
- I
888
- -1
889
- I
890
- 10
891
- I
892
- 0
893
- I
894
- 11
895
- I
896
- 1d
897
- I
898
- 12
899
- I
900
- 6a
901
- I
902
- 13
903
- I
904
- b7
905
- I
906
- 14
907
- I
908
- bf
909
- I
910
- 15
911
- I
912
- c7
913
- I
914
- 16
915
- I
916
- d4
917
- I
918
- 17
919
- I
920
- e1
921
- I
922
- 18
923
- I
924
- ec
925
- x
926
- 60
927
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
928
- p
929
- 3
930
- x
931
- 5
932
- queue
933
- x
934
- 5
935
- ref_1
936
- x
937
- 5
938
- ref_2
939
- x
940
- 37
941
- test_can_remove_references_as_a_stack
942
- M
943
- 1
944
- n
945
- n
946
- x
947
- 37
948
- test_can_remove_references_as_a_stack
949
- i
950
- 236
951
- 45
952
- 0
953
- 1
954
- 43
955
- 2
956
- 13
957
- 71
958
- 3
959
- 47
960
- 9
961
- 23
962
- 47
963
- 49
964
- 4
965
- 0
966
- 13
967
- 47
968
- 49
969
- 5
970
- 0
971
- 15
972
- 8
973
- 26
974
- 49
975
- 3
976
- 0
977
- 19
978
- 0
979
- 15
980
- 45
981
- 0
982
- 6
983
- 43
984
- 7
985
- 13
986
- 71
987
- 3
988
- 47
989
- 9
990
- 76
991
- 47
992
- 49
993
- 4
994
- 0
995
- 13
996
- 45
997
- 8
998
- 9
999
- 13
1000
- 71
1001
- 3
1002
- 47
1003
- 9
1004
- 66
1005
- 47
1006
- 49
1007
- 4
1008
- 0
1009
- 13
1010
- 47
1011
- 49
1012
- 5
1013
- 0
1014
- 15
1015
- 8
1016
- 69
1017
- 49
1018
- 3
1019
- 0
1020
- 47
1021
- 49
1022
- 5
1023
- 1
1024
- 15
1025
- 8
1026
- 103
1027
- 45
1028
- 8
1029
- 10
1030
- 13
1031
- 71
1032
- 3
1033
- 47
1034
- 9
1035
- 97
1036
- 47
1037
- 49
1038
- 4
1039
- 0
1040
- 13
1041
- 47
1042
- 49
1043
- 5
1044
- 0
1045
- 15
1046
- 8
1047
- 100
1048
- 49
1049
- 3
1050
- 0
1051
- 49
1052
- 3
1053
- 1
1054
- 19
1055
- 1
1056
- 15
1057
- 45
1058
- 0
1059
- 11
1060
- 43
1061
- 7
1062
- 13
1063
- 71
1064
- 3
1065
- 47
1066
- 9
1067
- 153
1068
- 47
1069
- 49
1070
- 4
1071
- 0
1072
- 13
1073
- 45
1074
- 8
1075
- 12
1076
- 13
1077
- 71
1078
- 3
1079
- 47
1080
- 9
1081
- 143
1082
- 47
1083
- 49
1084
- 4
1085
- 0
1086
- 13
1087
- 47
1088
- 49
1089
- 5
1090
- 0
1091
- 15
1092
- 8
1093
- 146
1094
- 49
1095
- 3
1096
- 0
1097
- 47
1098
- 49
1099
- 5
1100
- 1
1101
- 15
1102
- 8
1103
- 180
1104
- 45
1105
- 8
1106
- 13
1107
- 13
1108
- 71
1109
- 3
1110
- 47
1111
- 9
1112
- 174
1113
- 47
1114
- 49
1115
- 4
1116
- 0
1117
- 13
1118
- 47
1119
- 49
1120
- 5
1121
- 0
1122
- 15
1123
- 8
1124
- 177
1125
- 49
1126
- 3
1127
- 0
1128
- 49
1129
- 3
1130
- 1
1131
- 19
1132
- 2
1133
- 15
1134
- 20
1135
- 0
1136
- 20
1137
- 1
1138
- 49
1139
- 14
1140
- 1
1141
- 15
1142
- 20
1143
- 0
1144
- 20
1145
- 2
1146
- 49
1147
- 14
1148
- 1
1149
- 15
1150
- 5
1151
- 20
1152
- 2
1153
- 20
1154
- 0
1155
- 49
1156
- 15
1157
- 0
1158
- 47
1159
- 49
1160
- 16
1161
- 2
1162
- 15
1163
- 5
1164
- 20
1165
- 1
1166
- 20
1167
- 0
1168
- 49
1169
- 15
1170
- 0
1171
- 47
1172
- 49
1173
- 16
1174
- 2
1175
- 15
1176
- 5
1177
- 20
1178
- 0
1179
- 49
1180
- 15
1181
- 0
1182
- 47
1183
- 49
1184
- 17
1185
- 1
1186
- 11
1187
- I
1188
- 7
1189
- I
1190
- 3
1191
- I
1192
- 0
1193
- I
1194
- 0
1195
- n
1196
- p
1197
- 18
1198
- x
1199
- 3
1200
- Ref
1201
- n
1202
- x
1203
- 14
1204
- ReferenceQueue
1205
- x
1206
- 3
1207
- new
1208
- x
1209
- 8
1210
- allocate
1211
- x
1212
- 10
1213
- initialize
1214
- n
1215
- x
1216
- 13
1217
- WeakReference
1218
- x
1219
- 6
1220
- Object
1221
- n
1222
- n
1223
- n
1224
- n
1225
- n
1226
- x
1227
- 4
1228
- push
1229
- x
1230
- 3
1231
- pop
1232
- x
1233
- 12
1234
- assert_equal
1235
- x
1236
- 10
1237
- assert_nil
1238
- p
1239
- 19
1240
- I
1241
- -1
1242
- I
1243
- 1b
1244
- I
1245
- 0
1246
- I
1247
- 1c
1248
- I
1249
- 1d
1250
- I
1251
- 1d
1252
- I
1253
- 6a
1254
- I
1255
- 1e
1256
- I
1257
- b7
1258
- I
1259
- 1f
1260
- I
1261
- bf
1262
- I
1263
- 20
1264
- I
1265
- c7
1266
- I
1267
- 21
1268
- I
1269
- d4
1270
- I
1271
- 22
1272
- I
1273
- e1
1274
- I
1275
- 23
1276
- I
1277
- ec
1278
- x
1279
- 60
1280
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
1281
- p
1282
- 3
1283
- x
1284
- 5
1285
- queue
1286
- x
1287
- 5
1288
- ref_1
1289
- x
1290
- 5
1291
- ref_2
1292
- x
1293
- 60
1294
- test_references_are_added_when_the_object_has_been_collected
1295
- M
1296
- 1
1297
- n
1298
- n
1299
- x
1300
- 60
1301
- test_references_are_added_when_the_object_has_been_collected
1302
- i
1303
- 11
1304
- 45
1305
- 0
1306
- 1
1307
- 43
1308
- 2
1309
- 56
1310
- 3
1311
- 50
1312
- 4
1313
- 0
1314
- 11
1315
- I
1316
- 2
1317
- I
1318
- 0
1319
- I
1320
- 0
1321
- I
1322
- 0
1323
- n
1324
- p
1325
- 5
1326
- x
1327
- 3
1328
- Ref
1329
- n
1330
- x
1331
- 4
1332
- Mock
1333
- M
1334
- 1
1335
- p
1336
- 2
1337
- x
1338
- 9
1339
- for_block
1340
- t
1341
- n
1342
- x
1343
- 60
1344
- test_references_are_added_when_the_object_has_been_collected
1345
- i
1346
- 132
1347
- 45
1348
- 0
1349
- 1
1350
- 13
1351
- 71
1352
- 2
1353
- 47
1354
- 9
1355
- 21
1356
- 47
1357
- 49
1358
- 3
1359
- 0
1360
- 13
1361
- 47
1362
- 49
1363
- 4
1364
- 0
1365
- 15
1366
- 8
1367
- 24
1368
- 49
1369
- 2
1370
- 0
1371
- 19
1372
- 0
1373
- 15
1374
- 45
1375
- 5
1376
- 6
1377
- 43
1378
- 7
1379
- 13
1380
- 71
1381
- 2
1382
- 47
1383
- 9
1384
- 52
1385
- 47
1386
- 49
1387
- 3
1388
- 0
1389
- 13
1390
- 20
1391
- 0
1392
- 47
1393
- 49
1394
- 4
1395
- 1
1396
- 15
1397
- 8
1398
- 57
1399
- 20
1400
- 0
1401
- 49
1402
- 2
1403
- 1
1404
- 19
1405
- 1
1406
- 15
1407
- 45
1408
- 5
1409
- 8
1410
- 43
1411
- 9
1412
- 13
1413
- 71
1414
- 2
1415
- 47
1416
- 9
1417
- 83
1418
- 47
1419
- 49
1420
- 3
1421
- 0
1422
- 13
1423
- 47
1424
- 49
1425
- 4
1426
- 0
1427
- 15
1428
- 8
1429
- 86
1430
- 49
1431
- 2
1432
- 0
1433
- 19
1434
- 2
1435
- 15
1436
- 20
1437
- 2
1438
- 20
1439
- 1
1440
- 49
1441
- 10
1442
- 1
1443
- 15
1444
- 5
1445
- 20
1446
- 2
1447
- 49
1448
- 11
1449
- 0
1450
- 47
1451
- 49
1452
- 12
1453
- 1
1454
- 15
1455
- 45
1456
- 5
1457
- 13
1458
- 43
1459
- 14
1460
- 20
1461
- 0
1462
- 49
1463
- 15
1464
- 1
1465
- 15
1466
- 5
1467
- 20
1468
- 1
1469
- 20
1470
- 2
1471
- 49
1472
- 11
1473
- 0
1474
- 47
1475
- 49
1476
- 16
1477
- 2
1478
- 11
1479
- I
1480
- 7
1481
- I
1482
- 3
1483
- I
1484
- 0
1485
- I
1486
- 0
1487
- I
1488
- -2
1489
- p
1490
- 17
1491
- x
1492
- 6
1493
- Object
1494
- n
1495
- x
1496
- 3
1497
- new
1498
- x
1499
- 8
1500
- allocate
1501
- x
1502
- 10
1503
- initialize
1504
- x
1505
- 3
1506
- Ref
1507
- n
1508
- x
1509
- 13
1510
- WeakReference
1511
- n
1512
- x
1513
- 14
1514
- ReferenceQueue
1515
- x
1516
- 7
1517
- monitor
1518
- x
1519
- 5
1520
- shift
1521
- x
1522
- 10
1523
- assert_nil
1524
- n
1525
- x
1526
- 4
1527
- Mock
1528
- x
1529
- 2
1530
- gc
1531
- x
1532
- 12
1533
- assert_equal
1534
- p
1535
- 15
1536
- I
1537
- 0
1538
- I
1539
- 28
1540
- I
1541
- 1b
1542
- I
1543
- 29
1544
- I
1545
- 3c
1546
- I
1547
- 2a
1548
- I
1549
- 59
1550
- I
1551
- 2b
1552
- I
1553
- 61
1554
- I
1555
- 2c
1556
- I
1557
- 6c
1558
- I
1559
- 2d
1560
- I
1561
- 77
1562
- I
1563
- 2e
1564
- I
1565
- 84
1566
- x
1567
- 60
1568
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
1569
- p
1570
- 3
1571
- x
1572
- 3
1573
- obj
1574
- x
1575
- 3
1576
- ref
1577
- x
1578
- 5
1579
- queue
1580
- x
1581
- 3
1582
- use
1583
- p
1584
- 5
1585
- I
1586
- -1
1587
- I
1588
- 26
1589
- I
1590
- 0
1591
- I
1592
- 27
1593
- I
1594
- b
1595
- x
1596
- 60
1597
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
1598
- p
1599
- 0
1600
- x
1601
- 70
1602
- test_references_are_added_immediately_if_the_object_has_been_collected
1603
- M
1604
- 1
1605
- n
1606
- n
1607
- x
1608
- 70
1609
- test_references_are_added_immediately_if_the_object_has_been_collected
1610
- i
1611
- 11
1612
- 45
1613
- 0
1614
- 1
1615
- 43
1616
- 2
1617
- 56
1618
- 3
1619
- 50
1620
- 4
1621
- 0
1622
- 11
1623
- I
1624
- 2
1625
- I
1626
- 0
1627
- I
1628
- 0
1629
- I
1630
- 0
1631
- n
1632
- p
1633
- 5
1634
- x
1635
- 3
1636
- Ref
1637
- n
1638
- x
1639
- 4
1640
- Mock
1641
- M
1642
- 1
1643
- p
1644
- 2
1645
- x
1646
- 9
1647
- for_block
1648
- t
1649
- n
1650
- x
1651
- 70
1652
- test_references_are_added_immediately_if_the_object_has_been_collected
1653
- i
1654
- 121
1655
- 45
1656
- 0
1657
- 1
1658
- 13
1659
- 71
1660
- 2
1661
- 47
1662
- 9
1663
- 21
1664
- 47
1665
- 49
1666
- 3
1667
- 0
1668
- 13
1669
- 47
1670
- 49
1671
- 4
1672
- 0
1673
- 15
1674
- 8
1675
- 24
1676
- 49
1677
- 2
1678
- 0
1679
- 19
1680
- 0
1681
- 15
1682
- 45
1683
- 5
1684
- 6
1685
- 43
1686
- 7
1687
- 13
1688
- 71
1689
- 2
1690
- 47
1691
- 9
1692
- 52
1693
- 47
1694
- 49
1695
- 3
1696
- 0
1697
- 13
1698
- 20
1699
- 0
1700
- 47
1701
- 49
1702
- 4
1703
- 1
1704
- 15
1705
- 8
1706
- 57
1707
- 20
1708
- 0
1709
- 49
1710
- 2
1711
- 1
1712
- 19
1713
- 1
1714
- 15
1715
- 45
1716
- 5
1717
- 8
1718
- 43
1719
- 9
1720
- 20
1721
- 0
1722
- 49
1723
- 10
1724
- 1
1725
- 15
1726
- 45
1727
- 5
1728
- 11
1729
- 43
1730
- 12
1731
- 13
1732
- 71
1733
- 2
1734
- 47
1735
- 9
1736
- 94
1737
- 47
1738
- 49
1739
- 3
1740
- 0
1741
- 13
1742
- 47
1743
- 49
1744
- 4
1745
- 0
1746
- 15
1747
- 8
1748
- 97
1749
- 49
1750
- 2
1751
- 0
1752
- 19
1753
- 2
1754
- 15
1755
- 20
1756
- 2
1757
- 20
1758
- 1
1759
- 49
1760
- 13
1761
- 1
1762
- 15
1763
- 5
1764
- 20
1765
- 1
1766
- 20
1767
- 2
1768
- 49
1769
- 14
1770
- 0
1771
- 47
1772
- 49
1773
- 15
1774
- 2
1775
- 11
1776
- I
1777
- 7
1778
- I
1779
- 3
1780
- I
1781
- 0
1782
- I
1783
- 0
1784
- I
1785
- -2
1786
- p
1787
- 16
1788
- x
1789
- 6
1790
- Object
1791
- n
1792
- x
1793
- 3
1794
- new
1795
- x
1796
- 8
1797
- allocate
1798
- x
1799
- 10
1800
- initialize
1801
- x
1802
- 3
1803
- Ref
1804
- n
1805
- x
1806
- 13
1807
- WeakReference
1808
- n
1809
- x
1810
- 4
1811
- Mock
1812
- x
1813
- 2
1814
- gc
1815
- n
1816
- x
1817
- 14
1818
- ReferenceQueue
1819
- x
1820
- 7
1821
- monitor
1822
- x
1823
- 5
1824
- shift
1825
- x
1826
- 12
1827
- assert_equal
1828
- p
1829
- 13
1830
- I
1831
- 0
1832
- I
1833
- 34
1834
- I
1835
- 1b
1836
- I
1837
- 35
1838
- I
1839
- 3c
1840
- I
1841
- 36
1842
- I
1843
- 47
1844
- I
1845
- 37
1846
- I
1847
- 64
1848
- I
1849
- 38
1850
- I
1851
- 6c
1852
- I
1853
- 39
1854
- I
1855
- 79
1856
- x
1857
- 60
1858
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
1859
- p
1860
- 3
1861
- x
1862
- 3
1863
- obj
1864
- x
1865
- 3
1866
- ref
1867
- x
1868
- 5
1869
- queue
1870
- x
1871
- 3
1872
- use
1873
- p
1874
- 5
1875
- I
1876
- -1
1877
- I
1878
- 32
1879
- I
1880
- 0
1881
- I
1882
- 33
1883
- I
1884
- b
1885
- x
1886
- 60
1887
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
1888
- p
1889
- 0
1890
- p
1891
- 11
1892
- I
1893
- 2
1894
- I
1895
- 4
1896
- I
1897
- 10
1898
- I
1899
- 10
1900
- I
1901
- 1e
1902
- I
1903
- 1b
1904
- I
1905
- 2c
1906
- I
1907
- 26
1908
- I
1909
- 3a
1910
- I
1911
- 32
1912
- I
1913
- 48
1914
- x
1915
- 60
1916
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
1917
- p
1918
- 0
1919
- x
1920
- 13
1921
- attach_method
1922
- p
1923
- 5
1924
- I
1925
- 0
1926
- I
1927
- 1
1928
- I
1929
- 13
1930
- I
1931
- 3
1932
- I
1933
- 36
1934
- x
1935
- 60
1936
- /Users/bdurand/dev/projects/ref/test/reference_queue_test.rb
1937
- p
1938
- 0