ref 1.0.5 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
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,54 +0,0 @@
1
- require File.expand_path("../test_helper", __FILE__)
2
-
3
- class TestWeakReference < Test::Unit::TestCase
4
- def test_can_get_non_garbage_collected_objects
5
- obj = Object.new
6
- ref_1 = Ref::WeakReference.new(obj)
7
- ref_2 = Ref::WeakReference.new(obj)
8
- assert_equal obj, ref_1.object
9
- assert_equal obj.object_id, ref_1.referenced_object_id
10
- assert_equal obj, ref_2.object
11
- assert_equal obj.object_id, ref_2.referenced_object_id
12
- end
13
-
14
- def test_get_the_correct_object
15
- # Since we can't reliably control the garbage collector, this is a brute force test.
16
- # It might not always fail if the garbage collector and memory allocator don't
17
- # cooperate, but it should fail often enough on continuous integration to
18
- # hilite any problems. Set the environment variable QUICK_TEST to "true" if you
19
- # want to make the tests run quickly.
20
- id_to_ref = {}
21
- (ENV["QUICK_TEST"] == "true" ? 1000 : 100000).times do |i|
22
- obj = Object.new
23
- if id_to_ref.key?(obj.object_id)
24
- ref = id_to_ref[obj.object_id]
25
- if ref.object
26
- flunk "weak reference found with a live reference to an object that was not the one it was created with"
27
- break
28
- end
29
- end
30
- %w(Here are a bunch of objects that are allocated and can then be cleaned up by the garbage collector)
31
- id_to_ref[obj.object_id] = Ref::WeakReference.new(obj)
32
- if i % 1000 == 0
33
- GC.start
34
- sleep(0.01)
35
- end
36
- end
37
- end
38
-
39
- def test_inspect
40
- ref = Ref::WeakReference.new(Object.new)
41
- assert ref.inspect
42
- GC.start
43
- GC.start
44
- assert ref.inspect
45
- end
46
-
47
- if defined?(BasicObject)
48
- def test_basic_object_does_not_throw_exception
49
- obj = BasicObject.new
50
- ref = Ref::WeakReference.new(obj)
51
- assert_equal obj, ref.object
52
- end
53
- end
54
- end
@@ -1,1510 +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
- 17
96
- TestWeakReference
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
- 17
119
- TestWeakReference
120
- i
121
- 87
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
- 45
170
- 9
171
- 10
172
- 65
173
- 49
174
- 11
175
- 3
176
- 13
177
- 99
178
- 12
179
- 7
180
- 12
181
- 12
182
- 7
183
- 13
184
- 12
185
- 65
186
- 12
187
- 49
188
- 14
189
- 4
190
- 15
191
- 49
192
- 12
193
- 0
194
- 15
195
- 99
196
- 7
197
- 15
198
- 7
199
- 16
200
- 65
201
- 67
202
- 49
203
- 2
204
- 0
205
- 49
206
- 3
207
- 4
208
- 11
209
- I
210
- 6
211
- I
212
- 0
213
- I
214
- 0
215
- I
216
- 0
217
- n
218
- p
219
- 17
220
- x
221
- 42
222
- test_can_get_non_garbage_collected_objects
223
- M
224
- 1
225
- n
226
- n
227
- x
228
- 42
229
- test_can_get_non_garbage_collected_objects
230
- i
231
- 151
232
- 45
233
- 0
234
- 1
235
- 13
236
- 71
237
- 2
238
- 47
239
- 9
240
- 21
241
- 47
242
- 49
243
- 3
244
- 0
245
- 13
246
- 47
247
- 49
248
- 4
249
- 0
250
- 15
251
- 8
252
- 24
253
- 49
254
- 2
255
- 0
256
- 19
257
- 0
258
- 15
259
- 45
260
- 5
261
- 6
262
- 43
263
- 7
264
- 13
265
- 71
266
- 2
267
- 47
268
- 9
269
- 52
270
- 47
271
- 49
272
- 3
273
- 0
274
- 13
275
- 20
276
- 0
277
- 47
278
- 49
279
- 4
280
- 1
281
- 15
282
- 8
283
- 57
284
- 20
285
- 0
286
- 49
287
- 2
288
- 1
289
- 19
290
- 1
291
- 15
292
- 45
293
- 5
294
- 8
295
- 43
296
- 7
297
- 13
298
- 71
299
- 2
300
- 47
301
- 9
302
- 85
303
- 47
304
- 49
305
- 3
306
- 0
307
- 13
308
- 20
309
- 0
310
- 47
311
- 49
312
- 4
313
- 1
314
- 15
315
- 8
316
- 90
317
- 20
318
- 0
319
- 49
320
- 2
321
- 1
322
- 19
323
- 2
324
- 15
325
- 5
326
- 20
327
- 0
328
- 20
329
- 1
330
- 49
331
- 9
332
- 0
333
- 47
334
- 49
335
- 10
336
- 2
337
- 15
338
- 5
339
- 20
340
- 0
341
- 49
342
- 11
343
- 0
344
- 20
345
- 1
346
- 49
347
- 12
348
- 0
349
- 47
350
- 49
351
- 10
352
- 2
353
- 15
354
- 5
355
- 20
356
- 0
357
- 20
358
- 2
359
- 49
360
- 9
361
- 0
362
- 47
363
- 49
364
- 10
365
- 2
366
- 15
367
- 5
368
- 20
369
- 0
370
- 49
371
- 11
372
- 0
373
- 20
374
- 2
375
- 49
376
- 12
377
- 0
378
- 47
379
- 49
380
- 10
381
- 2
382
- 11
383
- I
384
- 6
385
- I
386
- 3
387
- I
388
- 0
389
- I
390
- 0
391
- n
392
- p
393
- 13
394
- x
395
- 6
396
- Object
397
- n
398
- x
399
- 3
400
- new
401
- x
402
- 8
403
- allocate
404
- x
405
- 10
406
- initialize
407
- x
408
- 3
409
- Ref
410
- n
411
- x
412
- 13
413
- WeakReference
414
- n
415
- x
416
- 6
417
- object
418
- x
419
- 12
420
- assert_equal
421
- x
422
- 9
423
- object_id
424
- x
425
- 20
426
- referenced_object_id
427
- p
428
- 17
429
- I
430
- -1
431
- I
432
- 4
433
- I
434
- 0
435
- I
436
- 5
437
- I
438
- 1b
439
- I
440
- 6
441
- I
442
- 3c
443
- I
444
- 7
445
- I
446
- 5d
447
- I
448
- 8
449
- I
450
- 6a
451
- I
452
- 9
453
- I
454
- 7a
455
- I
456
- a
457
- I
458
- 87
459
- I
460
- b
461
- I
462
- 97
463
- x
464
- 59
465
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
466
- p
467
- 3
468
- x
469
- 3
470
- obj
471
- x
472
- 5
473
- ref_1
474
- x
475
- 5
476
- ref_2
477
- x
478
- 17
479
- method_visibility
480
- x
481
- 15
482
- add_defn_method
483
- x
484
- 27
485
- test_get_the_correct_object
486
- M
487
- 1
488
- n
489
- n
490
- x
491
- 27
492
- test_get_the_correct_object
493
- i
494
- 38
495
- 44
496
- 43
497
- 0
498
- 78
499
- 49
500
- 1
501
- 1
502
- 19
503
- 0
504
- 15
505
- 45
506
- 2
507
- 3
508
- 7
509
- 4
510
- 64
511
- 49
512
- 5
513
- 1
514
- 7
515
- 6
516
- 64
517
- 83
518
- 7
519
- 9
520
- 30
521
- 7
522
- 8
523
- 8
524
- 32
525
- 7
526
- 9
527
- 56
528
- 10
529
- 50
530
- 11
531
- 0
532
- 11
533
- I
534
- 3
535
- I
536
- 1
537
- I
538
- 0
539
- I
540
- 0
541
- n
542
- p
543
- 12
544
- x
545
- 4
546
- Hash
547
- x
548
- 16
549
- new_from_literal
550
- x
551
- 3
552
- ENV
553
- n
554
- s
555
- 10
556
- QUICK_TEST
557
- x
558
- 2
559
- []
560
- s
561
- 4
562
- true
563
- x
564
- 2
565
- ==
566
- I
567
- 3e8
568
- I
569
- 186a0
570
- M
571
- 1
572
- p
573
- 2
574
- x
575
- 9
576
- for_block
577
- t
578
- n
579
- x
580
- 27
581
- test_get_the_correct_object
582
- i
583
- 219
584
- 57
585
- 19
586
- 0
587
- 15
588
- 45
589
- 0
590
- 1
591
- 13
592
- 71
593
- 2
594
- 47
595
- 9
596
- 25
597
- 47
598
- 49
599
- 3
600
- 0
601
- 13
602
- 47
603
- 49
604
- 4
605
- 0
606
- 15
607
- 8
608
- 28
609
- 49
610
- 2
611
- 0
612
- 19
613
- 1
614
- 15
615
- 21
616
- 1
617
- 0
618
- 20
619
- 1
620
- 49
621
- 5
622
- 0
623
- 49
624
- 6
625
- 1
626
- 9
627
- 81
628
- 21
629
- 1
630
- 0
631
- 20
632
- 1
633
- 49
634
- 5
635
- 0
636
- 49
637
- 7
638
- 1
639
- 19
640
- 2
641
- 15
642
- 20
643
- 2
644
- 49
645
- 8
646
- 0
647
- 9
648
- 78
649
- 5
650
- 7
651
- 9
652
- 64
653
- 47
654
- 49
655
- 10
656
- 1
657
- 15
658
- 1
659
- 33
660
- 8
661
- 79
662
- 1
663
- 8
664
- 82
665
- 1
666
- 15
667
- 7
668
- 11
669
- 64
670
- 7
671
- 12
672
- 64
673
- 7
674
- 13
675
- 64
676
- 7
677
- 14
678
- 64
679
- 7
680
- 15
681
- 64
682
- 7
683
- 16
684
- 64
685
- 7
686
- 17
687
- 64
688
- 7
689
- 12
690
- 64
691
- 7
692
- 18
693
- 64
694
- 7
695
- 19
696
- 64
697
- 7
698
- 20
699
- 64
700
- 7
701
- 21
702
- 64
703
- 7
704
- 22
705
- 64
706
- 7
707
- 23
708
- 64
709
- 7
710
- 24
711
- 64
712
- 7
713
- 25
714
- 64
715
- 7
716
- 26
717
- 64
718
- 7
719
- 27
720
- 64
721
- 7
722
- 28
723
- 64
724
- 35
725
- 19
726
- 15
727
- 21
728
- 1
729
- 0
730
- 20
731
- 1
732
- 49
733
- 5
734
- 0
735
- 45
736
- 29
737
- 30
738
- 43
739
- 31
740
- 13
741
- 71
742
- 2
743
- 47
744
- 9
745
- 176
746
- 47
747
- 49
748
- 3
749
- 0
750
- 13
751
- 20
752
- 1
753
- 47
754
- 49
755
- 4
756
- 1
757
- 15
758
- 8
759
- 181
760
- 20
761
- 1
762
- 49
763
- 2
764
- 1
765
- 13
766
- 18
767
- 3
768
- 49
769
- 32
770
- 2
771
- 15
772
- 15
773
- 20
774
- 0
775
- 7
776
- 33
777
- 49
778
- 34
779
- 1
780
- 78
781
- 83
782
- 35
783
- 9
784
- 217
785
- 45
786
- 36
787
- 37
788
- 49
789
- 38
790
- 0
791
- 15
792
- 5
793
- 7
794
- 39
795
- 47
796
- 49
797
- 40
798
- 1
799
- 8
800
- 218
801
- 1
802
- 11
803
- I
804
- 17
805
- I
806
- 3
807
- I
808
- 1
809
- I
810
- 1
811
- n
812
- p
813
- 41
814
- x
815
- 6
816
- Object
817
- n
818
- x
819
- 3
820
- new
821
- x
822
- 8
823
- allocate
824
- x
825
- 10
826
- initialize
827
- x
828
- 9
829
- object_id
830
- x
831
- 4
832
- key?
833
- x
834
- 2
835
- []
836
- x
837
- 6
838
- object
839
- s
840
- 96
841
- weak reference found with a live reference to an object that was not the one it was created with
842
- x
843
- 5
844
- flunk
845
- s
846
- 4
847
- Here
848
- s
849
- 3
850
- are
851
- s
852
- 1
853
- a
854
- s
855
- 5
856
- bunch
857
- s
858
- 2
859
- of
860
- s
861
- 7
862
- objects
863
- s
864
- 4
865
- that
866
- s
867
- 9
868
- allocated
869
- s
870
- 3
871
- and
872
- s
873
- 3
874
- can
875
- s
876
- 4
877
- then
878
- s
879
- 2
880
- be
881
- s
882
- 7
883
- cleaned
884
- s
885
- 2
886
- up
887
- s
888
- 2
889
- by
890
- s
891
- 3
892
- the
893
- s
894
- 7
895
- garbage
896
- s
897
- 9
898
- collector
899
- x
900
- 3
901
- Ref
902
- n
903
- x
904
- 13
905
- WeakReference
906
- x
907
- 3
908
- []=
909
- I
910
- 3e8
911
- x
912
- 1
913
- %
914
- x
915
- 2
916
- ==
917
- x
918
- 2
919
- GC
920
- n
921
- x
922
- 5
923
- start
924
- d
925
- +0.640000000000000013322676295501878485083580017089843750 -6
926
- x
927
- 5
928
- sleep
929
- p
930
- 37
931
- I
932
- 0
933
- I
934
- 15
935
- I
936
- 4
937
- I
938
- 16
939
- I
940
- 1f
941
- I
942
- 17
943
- I
944
- 2c
945
- I
946
- 18
947
- I
948
- 3a
949
- I
950
- 19
951
- I
952
- 41
953
- I
954
- 1a
955
- I
956
- 4a
957
- I
958
- 1b
959
- I
960
- 4e
961
- I
962
- 19
963
- I
964
- 4f
965
- I
966
- 0
967
- I
968
- 51
969
- I
970
- 17
971
- I
972
- 52
973
- I
974
- 0
975
- I
976
- 53
977
- I
978
- 1e
979
- I
980
- 8f
981
- I
982
- 1f
983
- I
984
- bd
985
- I
986
- 20
987
- I
988
- c9
989
- I
990
- 21
991
- I
992
- d0
993
- I
994
- 22
995
- I
996
- d9
997
- I
998
- 20
999
- I
1000
- da
1001
- I
1002
- 0
1003
- I
1004
- db
1005
- x
1006
- 59
1007
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1008
- p
1009
- 3
1010
- x
1011
- 1
1012
- i
1013
- x
1014
- 3
1015
- obj
1016
- x
1017
- 3
1018
- ref
1019
- x
1020
- 5
1021
- times
1022
- p
1023
- 9
1024
- I
1025
- -1
1026
- I
1027
- e
1028
- I
1029
- 0
1030
- I
1031
- 14
1032
- I
1033
- a
1034
- I
1035
- 15
1036
- I
1037
- 20
1038
- I
1039
- 15
1040
- I
1041
- 26
1042
- x
1043
- 59
1044
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1045
- p
1046
- 1
1047
- x
1048
- 9
1049
- id_to_ref
1050
- x
1051
- 12
1052
- test_inspect
1053
- M
1054
- 1
1055
- n
1056
- n
1057
- x
1058
- 12
1059
- test_inspect
1060
- i
1061
- 113
1062
- 45
1063
- 0
1064
- 1
1065
- 43
1066
- 2
1067
- 13
1068
- 71
1069
- 3
1070
- 47
1071
- 9
1072
- 47
1073
- 47
1074
- 49
1075
- 4
1076
- 0
1077
- 13
1078
- 45
1079
- 5
1080
- 6
1081
- 13
1082
- 71
1083
- 3
1084
- 47
1085
- 9
1086
- 37
1087
- 47
1088
- 49
1089
- 4
1090
- 0
1091
- 13
1092
- 47
1093
- 49
1094
- 7
1095
- 0
1096
- 15
1097
- 8
1098
- 40
1099
- 49
1100
- 3
1101
- 0
1102
- 47
1103
- 49
1104
- 7
1105
- 1
1106
- 15
1107
- 8
1108
- 74
1109
- 45
1110
- 5
1111
- 8
1112
- 13
1113
- 71
1114
- 3
1115
- 47
1116
- 9
1117
- 68
1118
- 47
1119
- 49
1120
- 4
1121
- 0
1122
- 13
1123
- 47
1124
- 49
1125
- 7
1126
- 0
1127
- 15
1128
- 8
1129
- 71
1130
- 49
1131
- 3
1132
- 0
1133
- 49
1134
- 3
1135
- 1
1136
- 19
1137
- 0
1138
- 15
1139
- 5
1140
- 20
1141
- 0
1142
- 49
1143
- 9
1144
- 0
1145
- 47
1146
- 49
1147
- 10
1148
- 1
1149
- 15
1150
- 45
1151
- 11
1152
- 12
1153
- 49
1154
- 13
1155
- 0
1156
- 15
1157
- 45
1158
- 11
1159
- 14
1160
- 49
1161
- 13
1162
- 0
1163
- 15
1164
- 5
1165
- 20
1166
- 0
1167
- 49
1168
- 9
1169
- 0
1170
- 47
1171
- 49
1172
- 10
1173
- 1
1174
- 11
1175
- I
1176
- 5
1177
- I
1178
- 1
1179
- I
1180
- 0
1181
- I
1182
- 0
1183
- n
1184
- p
1185
- 15
1186
- x
1187
- 3
1188
- Ref
1189
- n
1190
- x
1191
- 13
1192
- WeakReference
1193
- x
1194
- 3
1195
- new
1196
- x
1197
- 8
1198
- allocate
1199
- x
1200
- 6
1201
- Object
1202
- n
1203
- x
1204
- 10
1205
- initialize
1206
- n
1207
- x
1208
- 7
1209
- inspect
1210
- x
1211
- 6
1212
- assert
1213
- x
1214
- 2
1215
- GC
1216
- n
1217
- x
1218
- 5
1219
- start
1220
- n
1221
- p
1222
- 13
1223
- I
1224
- -1
1225
- I
1226
- 27
1227
- I
1228
- 0
1229
- I
1230
- 28
1231
- I
1232
- 4d
1233
- I
1234
- 29
1235
- I
1236
- 58
1237
- I
1238
- 2a
1239
- I
1240
- 5f
1241
- I
1242
- 2b
1243
- I
1244
- 66
1245
- I
1246
- 2c
1247
- I
1248
- 71
1249
- x
1250
- 59
1251
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1252
- p
1253
- 1
1254
- x
1255
- 3
1256
- ref
1257
- x
1258
- 15
1259
- TestBasicObject
1260
- x
1261
- 6
1262
- Object
1263
- n
1264
- x
1265
- 10
1266
- open_class
1267
- x
1268
- 14
1269
- __class_init__
1270
- M
1271
- 1
1272
- n
1273
- n
1274
- x
1275
- 15
1276
- TestBasicObject
1277
- i
1278
- 18
1279
- 5
1280
- 66
1281
- 5
1282
- 7
1283
- 0
1284
- 47
1285
- 49
1286
- 1
1287
- 1
1288
- 15
1289
- 5
1290
- 7
1291
- 2
1292
- 47
1293
- 49
1294
- 1
1295
- 1
1296
- 11
1297
- I
1298
- 2
1299
- I
1300
- 0
1301
- I
1302
- 0
1303
- I
1304
- 0
1305
- n
1306
- p
1307
- 3
1308
- x
1309
- 26
1310
- instance_variable_defined?
1311
- x
1312
- 12
1313
- undef_method
1314
- x
1315
- 21
1316
- instance_variable_get
1317
- p
1318
- 5
1319
- I
1320
- 2
1321
- I
1322
- 30
1323
- I
1324
- a
1325
- I
1326
- 31
1327
- I
1328
- 12
1329
- x
1330
- 59
1331
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1332
- p
1333
- 0
1334
- x
1335
- 13
1336
- attach_method
1337
- x
1338
- 42
1339
- test_basic_object_does_not_throw_exception
1340
- M
1341
- 1
1342
- n
1343
- n
1344
- x
1345
- 42
1346
- test_basic_object_does_not_throw_exception
1347
- i
1348
- 58
1349
- 45
1350
- 0
1351
- 1
1352
- 13
1353
- 71
1354
- 2
1355
- 47
1356
- 9
1357
- 21
1358
- 47
1359
- 49
1360
- 3
1361
- 0
1362
- 13
1363
- 47
1364
- 49
1365
- 4
1366
- 0
1367
- 15
1368
- 8
1369
- 24
1370
- 49
1371
- 2
1372
- 0
1373
- 19
1374
- 0
1375
- 15
1376
- 45
1377
- 5
1378
- 6
1379
- 43
1380
- 7
1381
- 13
1382
- 71
1383
- 2
1384
- 47
1385
- 9
1386
- 52
1387
- 47
1388
- 49
1389
- 3
1390
- 0
1391
- 13
1392
- 20
1393
- 0
1394
- 47
1395
- 49
1396
- 4
1397
- 1
1398
- 15
1399
- 8
1400
- 57
1401
- 20
1402
- 0
1403
- 49
1404
- 2
1405
- 1
1406
- 11
1407
- I
1408
- 4
1409
- I
1410
- 1
1411
- I
1412
- 0
1413
- I
1414
- 0
1415
- n
1416
- p
1417
- 8
1418
- x
1419
- 15
1420
- TestBasicObject
1421
- n
1422
- x
1423
- 3
1424
- new
1425
- x
1426
- 8
1427
- allocate
1428
- x
1429
- 10
1430
- initialize
1431
- x
1432
- 3
1433
- Ref
1434
- n
1435
- x
1436
- 13
1437
- WeakReference
1438
- p
1439
- 7
1440
- I
1441
- -1
1442
- I
1443
- 34
1444
- I
1445
- 0
1446
- I
1447
- 35
1448
- I
1449
- 1b
1450
- I
1451
- 36
1452
- I
1453
- 3a
1454
- x
1455
- 59
1456
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1457
- p
1458
- 1
1459
- x
1460
- 3
1461
- obj
1462
- p
1463
- 11
1464
- I
1465
- 2
1466
- I
1467
- 4
1468
- I
1469
- 10
1470
- I
1471
- e
1472
- I
1473
- 1e
1474
- I
1475
- 27
1476
- I
1477
- 2c
1478
- I
1479
- 2f
1480
- I
1481
- 49
1482
- I
1483
- 34
1484
- I
1485
- 57
1486
- x
1487
- 59
1488
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1489
- p
1490
- 0
1491
- x
1492
- 13
1493
- attach_method
1494
- p
1495
- 5
1496
- I
1497
- 0
1498
- I
1499
- 1
1500
- I
1501
- 13
1502
- I
1503
- 3
1504
- I
1505
- 36
1506
- x
1507
- 59
1508
- /Users/bdurand/dev/projects/ref/test/weak_reference_test.rb
1509
- p
1510
- 0