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