forked from ruby/ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
9817 lines (6276 loc) · 328 KB
/
ChangeLog
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
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Sat Jul 20 22:33:13 2013 Zachary Scott <e@zzak.io>
* doc/regexp.rdoc: [DOC] Fix typo in example [Fixes GH-365]
Patch by Juanito Fatas https://github.com/ruby/ruby/pull/365
Sat Jul 20 17:46:03 2013 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_succ): add missing case NEIGHBOR_WRAPPED.
r42078 caused buggy behavior like "\xFF".b -> "\x01\xFF".b
Sat Jul 20 15:22:38 2013 Koichi Sasada <ko1@atdot.net>
* array.c (rb_ary_resize): use simple memcpy because there are no new
references.
Sat Jul 20 15:02:51 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* safe.c (ruby_safe_level_4_warning): define for old extension
libraries. [Bug #8652]
Sat Jul 20 14:38:00 2013 Koichi Sasada <ko1@atdot.net>
* array.c (ary_make_shared): make shared array shady.
Making non-shady shared array causes SEGV (see rubyci).
It seems a bug around shared array.
Sat Jul 20 12:14:07 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (enc_succ_char, enc_pred_char): consider wchar case.
[ruby-core:56071] [Bug #8653]
* string.c (rb_str_succ): do not replace with invalid char.
* encoding.c (rb_enc_code_to_mbclen): add new function which returns
mbclen from codepoint like as rb_enc_codelen() but 0 for invalid
char.
* include/ruby/encoding.h (rb_enc_code_to_mbclen): declaration and
shortcut macro.
Fri Jul 19 21:59:12 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: declare type_name() at the beggining of file.
Fri Jul 19 21:35:09 2013 Koichi Sasada <ko1@atdot.net>
* array.c: reduce shady operations.
* array.c (rb_ary_modify, ary_make_partial, rb_ary_splice,
rb_ary_replace, rb_ary_eql, rb_ary_compact_bang):
use RARRAY_RAWPTR() instead of RARRAY_PTR().
* array.c (rb_ary_shift): use RARRAY_PTR_USE() without WB because
there are not new relations.
* array.c (ary_ensure_room_for_unshift): ditto.
* array.c (rb_ary_sort_bang): ditto.
* array.c (rb_ary_delete_at): ditto.
* array.c (rb_ary_reverse_m): use RARRAY_RAWPTR() because
there are not new relations.
Fri Jul 19 20:58:20 2013 Koichi Sasada <ko1@atdot.net>
* array.c: reduce shade operations.
* array.c (rb_ary_modify): use RARRAY_RAWPTR().
* array.c (ary_make_substitution, rb_ary_s_create, ary_make_partial,
rb_ary_splice, rb_ary_resize, rb_ary_rotate_m, rb_ary_times):
use ary_memcpy().
Fri Jul 19 19:55:28 2013 Koichi Sasada <ko1@atdot.net>
* array.c (ary_mem_clear): added. This operation doesn't need WB
because this operation creates a reference to Qnil.
* array.c (ary_make_shared, rb_ary_store, rb_ary_shift_m,
rb_ary_splice, rb_ary_resize, rb_ary_fill): use ary_mem_clear()
instead of rb_mem_clear().
* array.c (ary_make_shared): use RARRAY_RAWPTR() instead of RARRAY_PTR().
Fri Jul 19 19:18:51 2013 Koichi Sasada <ko1@atdot.net>
* array.c: fix commit miss.
RGENGC_UNPROTECT_LOGGING should be 0.
Fri Jul 19 19:15:30 2013 Koichi Sasada <ko1@atdot.net>
* array.c (rb_ary_resurrect): use RARRAY_RAWPTR() because there is no
writing.
* array.c (rb_ary_new_from_values): use ary_memcpy().
Fri Jul 19 19:07:31 2013 Koichi Sasada <ko1@atdot.net>
* array.c (ary_memcpy): add a function to copy VALUEs into ary
with write barrier. If ary is promoted, use write barrier correctly.
* array.c (rb_ary_cat, rb_ary_unshift_m, rb_ary_dup,
rb_ary_sort_bang, rb_ary_replace, rb_ary_plus): use ary_memcpy().
Fri Jul 19 15:32:57 2013 Koichi Sasada <ko1@atdot.net>
* array.c (rb_ary_store): use RARRAY_PTR_USE() intead of RARRAY_PTR().
Clearing memory space doesn't need WBs.
Fri Jul 19 15:19:37 2013 Koichi Sasada <ko1@atdot.net>
* array.c (ary_ensure_room_for_push): use RARRAY_RAWPTR() instead of
RARRAY_PTR. In this code, there are no "write" operation.
* array.c (rb_ary_equal): ditto.
* array.c (recursive_equal): ditto.
Fri Jul 19 15:09:22 2013 Koichi Sasada <ko1@atdot.net>
* gc.c, internal.h (rb_gc_writebarrier_remember_promoted): add a new
function to remember an specified object. This api is only
experimental (strongly depend on WB/rgengc strategy).
Fri Jul 19 14:56:00 2013 Koichi Sasada <ko1@atdot.net>
* array.c (ary_unprotect_logging): use (void *) for first parameter
because VALUE is not defined before including ruby/ruby.h.
Fri Jul 19 14:19:48 2013 Kazuki Tsujimoto <kazuki@callcc.net>
* ext/pathname/pathname.c (path_inspect): use PRIsVALUE to preserve
the result encoding.
Fri Jul 19 12:35:41 2013 Tanaka Akira <akr@fsij.org>
* test/socket/test_tcp.rb (test_initialize_failure): Use EADDRNOTAVAIL
to test an error message generated by bind() failure.
Fri Jul 19 11:27:38 2013 Zachary Scott <e@zzak.io>
* lib/racc/parser.rb: [DOC] Capitalize "Ruby" in documentation
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
Fri Jul 19 11:26:28 2013 Zachary Scott <e@zzak.io>
* ext/psych/lib/psych*: [DOC] Capitalize "Ruby" in documentation
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
Fri Jul 19 11:25:12 2013 Zachary Scott <e@zzak.io>
* lib/rdoc/*: [DOC] Capitalize "Ruby" in documentation
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
Fri Jul 19 11:23:55 2013 Zachary Scott <e@zzak.io>
* lib/rubygems*: [DOC] Capitalize "Ruby" in documentation
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
Fri Jul 19 11:16:54 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/set.rb (Set#to_set): Define Set#to_set so that aSet.to_set
returns self. [Fixes GH-359]
Fri Jul 19 11:10:23 2013 Zachary Scott <e@zzak.io>
* lib/rake/*: [DOC] Capitalize "Ruby" in documentation
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
Fri Jul 19 01:04:14 2013 Tanaka Akira <akr@fsij.org>
* ext/-test-/bignum/intpack.c: Renamed from ext/-test-/bignum/pack.c.
(Init_intpack): Renamed from Init_pack.
Reported by Naohisa Goto. [ruby-dev:47526] [Bug #8655]
Fri Jul 19 00:54:27 2013 Benoit Daloze <eregontp@gmail.com>
* test/ruby/test_array.rb (test_count): add a test case for #count
with an argument. See Bug #8654.
Thu Jul 18 23:45:06 2013 Masaki Matsushita <glass.saga@gmail.com>
* array.c (rb_ary_eql): compare RARRAY_PTR() for performance
improvement in case of that self and other are shared.
Thu Jul 18 22:46:42 2013 Zachary Scott <e@zzak.io>
* lib/cgi.rb: [DOC] Capitalize "Ruby" in documentation [Fixes GH-341]
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
* lib/webrick.rb: ditto
* lib/scanf.rb: ditto
* lib/xmlrpc/config.rb: ditto
* lib/resolv.rb: ditto
* lib/e2mmap.rb: ditto
* lib/fileutils.rb: ditto
* lib/mkmf.rb: ditto
* lib/cgi/session.rb: ditto
* lib/yaml.rb: ditto
* lib/erb.rb: ditto
* lib/irb.rb: ditto
* lib/tracer.rb: ditto
* lib/net/http.rb: ditto
* ext/syslog/lib/syslog/logger.rb: ditto
* sample/pty/expect_sample.rb: ditto
Thu Jul 18 21:30:50 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_sq_fast): Specialize the last iteration of the
outer loop.
(bigfixize): A condition simplified.
Thu Jul 18 21:15:41 2013 Masaki Matsushita <glass.saga@gmail.com>
* array.c (rb_ary_equal): compare RARRAY_PTR() for performance
improvement in case of that self and other are shared.
Thu Jul 18 20:44:51 2013 Masaki Matsushita <glass.saga@gmail.com>
* array.c (rb_ary_fill): use memfill().
Thu Jul 18 20:35:14 2013 Benoit Daloze <eregontp@gmail.com>
* array.c (rb_ary_count): check length to avoid SEGV
while iterating. Remove other pointer loop when arg is given.
* test/ruby/test_array.rb (test_count): add test for bug.
[ruby-core:56072] [Bug #8654]
Thu Jul 18 18:14:36 2013 Masaki Matsushita <glass.saga@gmail.com>
* array.c (rb_ary_count): iterate items appropriately.
[Bug #8654]
Thu Jul 18 17:35:41 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (rb_hash_flatten): performance improvement by not using
rb_hash_to_a() to avoid array creation with rb_assoc_new().
Thu Jul 18 16:16:17 2013 Koichi Sasada <ko1@atdot.net>
* array.c: add logging feature for RGenGC's write barrier unprotect
event.
Thu Jul 18 15:45:47 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (RUBY_SAFE_LEVEL_CHECK): make only
rb_set_safe_level(4) an error always but make rb_secure(4) an error
only in the core. [ruby-dev:47517] [Bug #8652]
Thu Jul 18 15:42:01 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: fix spell miss.
Thu Jul 18 15:11:11 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (ruby_safe_level_4): get rid of special
character. [ruby-dev:47512] [misc #8646]
Thu Jul 18 14:51:39 2013 Koichi Sasada <ko1@atdot.net>
* array.c (ary_alloc): slim setup process.
Thu Jul 18 14:37:57 2013 Koichi Sasada <ko1@atdot.net>
* string.c (str_alloc): no need to clear RString (already cleared).
Thu Jul 18 12:57:47 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (BDIGITS_ZERO): Defined.
(bary_pack): Use BDIGITS_ZERO.
(bary_unpack): Ditto.
(bary_mul_single): Ditto.
(bary_mul_normal): Ditto.
(bary_sq_fast): Ditto.
(bary_mul_balance_with_mulfunc): Ditto.
(bary_mul_precheck): Ditto.
(bary_mul_toom3_branch): Ditto.
(rb_cstr_to_inum): Ditto.
(big_shift3): Ditto.
(bigmul1_toom3): Ditto.
(bary_divmod): Ditto.
Thu Jul 18 06:30:02 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: rename gc related functions with prefix "gc_".
* before_gc_sweep() -> gc_before_sweep().
* after_gc_sweep() -> gc_after_sweep().
* lazy_sweep() -> gc_lazy_sweep().
* rest_sweep() -> gc_rest_sweep().
* slot_sweep() -> gc_slot_sweep().
* gc.c: rename a heap management function with prefix "heap_".
* get_freeobj() -> heap_get_freeobj().
* gc.c: rename markable_object_p() to is_markable_object().
Wed Jul 17 22:57:40 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (delete_if_i): use ST_DELETE.
Wed Jul 17 22:34:47 2013 Tanaka Akira <akr@fsij.org>
* bignum.c: An static assertion for relation of SIZEOF_LONG and
SIZEOF_BDIGITS is added.
(bary_mul_precheck): Reduce comparisons.
(bary_mul): Invoke bary_sq_fast or bary_mul1 if the bignum size is
small.
(bigfixize): Resize the argument bignum here.
(bignorm): Don't call bigtrunc after bigfixize.
Wed Jul 17 22:13:26 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (rb_hash_replace): performance improvement by using
st_copy().
Wed Jul 17 17:19:54 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: rename heap management functions with prefix "heap_".
* allocate_sorted_array() -> heap_allocate_sorted_array().
* slot_add_freeobj() -> heap_slot_add_freeobj().
* assign_heap_slot() -> heap_assign_slot().
* add_heap_slots() -> heap_add_slots().
* init_heap() -> heap_init().
* set_heap_increment() -> heap_set_increment().
* gc.c (initial_expand_heap): inlined in rb_gc_set_params().
Wed Jul 17 17:12:23 2013 Matthew M. Boedicker <matthewm@boedicker.org>
* hash.c (env_fetch): Add key name to message on ENV.fetch KeyError,
as well as Hash#fetch. [ruby-core:56062] [Feature #8649]
Wed Jul 17 15:59:33 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: catch up last changes for debugging/checking mode.
Wed Jul 17 15:50:10 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (rb_objspace_free): free slot itself.
* gc.c (objspace_each_objects): fix condition.
Use slot->body instead of slot.
* gc.c (count_objects): use "slot" variable.
Wed Jul 17 15:21:10 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (unlink_heap_slot): fix memory leak.
free slot itself at free_heap_slot().
Reproduce-able code is here:
N1 = 100_000; N2 = 1_000_000
N1.times{ary = []; N2.times{ary << ''}}
Maybe this problem is remaining in Ruby 2.0.0.
* gc.c (unlink_heap_slot): remove not working code.
Wed Jul 17 14:31:13 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: re-design the heap structure.
(1) The heap is consists of a set of slots.
(2) Each "slot" has a "slot_body".
slot::start and slot::limit specify RVALUE beginning address
and number of RVALUE in a "slot_body".
(3) "slot_body" contains a pointer to slot (slot_body::header::slot)
and an array of RVALUE.
(4) heap::sorted is an array of "slots", sorted by an address of
slot::body.
See https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/GC_design
for more details (figure).
* gc.c: Avoid "heaps" terminology. It is ambiguous.
Wed Jul 17 13:29:16 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: fix heaps_header and heaps_slot to reduce memory consumption.
(1) move heaps_header::start and limit to heaps_slot.
(2) remove heaps_header::end which can be calculated by start+limit.
* gc.c: catch up above change.
Wed Jul 17 12:30:05 2013 Tanaka Akira <akr@fsij.org>
* include/ruby/st.h (st_strcasecmp): Macro defined for compatibility.
(st_strncasecmp): Ditto.
Wed Jul 17 11:57:45 2013 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/util.rb (CGI::Util#escape, unescape): Avoid use of regexp
special global variable. [Feature #8648] Thanks to fotos.
Wed Jul 17 11:57:10 2013 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/erb.rb (ERB::Util#url_encode): Avoid use of regexp special global
variable. [Feature #8648] Thanks to fotos.
Wed Jul 17 08:12:41 2013 Tanaka Akira <akr@fsij.org>
* st.c (st_locale_insensitive_strcasecmp): Renamed from st_strcasecmp.
(st_locale_insensitive_strncasecmp): Renamed from st_strncasecmp.
* include/ruby/st.h: Follow above changes.
* include/ruby/ruby.h: Ditto.
Wed Jul 17 00:14:59 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bigmul1_toom3): Use bigdivrem_single instead of bigdivrem.
(big_three): Removed.
(Init_Bignum): Don't initialize big_three.
Tue Jul 16 21:46:03 2013 Masaki Matsushita <glass.saga@gmail.com>
* configure.in: revert r42008. strcasecmp() uses the current locale.
* include/ruby/ruby.h: ditto.
* st.c (st_strcasecmp): ditto.
Tue Jul 16 21:07:04 2013 Masaki Matsushita <glass.saga@gmail.com>
* configure.in: check strcasecmp().
* include/ruby/ruby.h: use strcasecmp() as st_strcasecmp() if it
exists.
* st.c (st_strcasecmp): define the function only if strcasecmp()
doesn't exist.
Tue Jul 16 20:21:28 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bigsq): Renamed from bigsqr.
Tue Jul 16 19:42:08 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (USHORT): Unused macro removed.
Tue Jul 16 19:18:51 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: slim a path of newobj_of().
* gc.c (objspace): add a new field objspace::freelist, which contains
available RVALUEs.
* gc.c (newobj_of): simply call new function `get_freeobj()'.
get_freeobj() returns objspace::freelist. If objspace::freelist
is not available, refill objspace::freelist with a slot pointed by
objspace::heap::free_slots.
* gc.c (before_gc_sweep): clear objspace::freelist.
* gc.c (slot_sweep): clear slot::freelist.
* gc.c (heaps_prepare_freeslot): renamed to heaps_prepare_freeslot.
* gc.c (unlink_free_heap_slot): remove unused function.
* gc.c (rb_free_const_table): remove unused function.
Tue Jul 16 19:05:12 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (big_shift3): Big shift width is not a problem for right
shift.
Tue Jul 16 18:50:08 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_count): [DOC] fix typo. Array#count uses ==, not
===. a question at asakusa.rb ML.
Tue Jul 16 18:35:48 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_mul_karatsuba): Avoid duplicate calculation when
squaring.
(bary_mul_toom3_branch): Ditto.
Tue Jul 16 17:43:22 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (link_free_heap_slot): removed.
* gc.c (slot_sweep): use `heaps_add_freeslot' instead of
`link_free_heap_slot'.
* gc.c (assign_heap_slot): use local variable `slot' instead of
`heaps'.
Tue Jul 16 17:21:39 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (assign_heap_slot): refactoring variable names.
* gc.c (slot_add_freeobj): added.
* gc.c (heaps_add_freeslot): added.
* gc.c (finalize_list, rb_gc_force_recycle, slot_sweep): use
`slot_add_freeobj' instead of modifying linked list directly.
Tue Jul 16 16:30:58 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (lazy_sweep): refactoring.
Tue Jul 16 13:32:06 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (enc_set_index): since r41967, old terminator is dealt
with in str_fill_term(). should not consider it here because this
function is called before any encoding is set.
Tue Jul 16 11:12:03 2013 Masaki Matsushita <glass.saga@gmail.com>
* proc.c (rb_block_arity): raise ArgumentError if no block given.
Tue Jul 16 08:15:22 2013 Zachary Scott <e@zzak.io>
* ext/bigdecimal/lib/bigdecimal/util.rb: [DOC] document top-level
classes from BigDecimal utils native extensions
Tue Jul 16 03:23:03 2013 Zachary Scott <e@zzak.io>
* numeric.c: [DOC] improve rdoc formatting for parameters and links
Mon Jul 15 14:40:00 2013 Tanaka Akira <akr@fsij.org>
* include/ruby/intern.h (rb_big2str0): Deprecated.
* bignum.c (rb_big2str1): Renamed from rb_big2str0.
(rb_big2str0): Deprecated wrapper for rb_big2str1.
(rb_big2str): Invoke rb_big2str1 instead of rb_big2str0.
Mon Jul 15 14:13:02 2013 Masaki Matsushita <glass.saga@gmail.com>
* struct.c (rb_struct_each_pair): use rb_yield_values(2, key, value)
instead of rb_yield(rb_assoc_new(key, value)) if rb_block_arity()
is greater than 1.
Mon Jul 15 13:46:26 2013 Tanaka Akira <akr@fsij.org>
* bignum.c: Add static assertions.
Mon Jul 15 13:36:02 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (rb_hash_each_pair): performance improvement by using
rb_block_arity().
Mon Jul 15 13:15:37 2013 Masaki Matsushita <glass.saga@gmail.com>
* proc.c (rb_block_arity): create internal API rb_block_arity().
it returns arity of given block.
Mon Jul 15 13:07:27 2013 Yuki Yugui Sonoda <yugui@yugui.jp>
* lib/prime.rb (Prime::EratosthenesGenerator,
Prime::EratosthenesSieve): New implementation by
robertjlooby <robertjlooby AT gmail.com>.
* test/test_prime.rb: updated with new method name
Mon Jul 15 11:32:46 2013 Zachary Scott <e@zzak.io>
* numeric.c (rb_cNumeric): [DOC] Added comment for Numeric to fix doc
Mon Jul 15 11:24:48 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (maxpow_in_bdigit_dbl): Useless #if removed.
Mon Jul 15 11:10:46 2013 Zachary Scott <e@zzak.io>
* bignum.c (rb_big_coerce): [DOC] Add docs for Bignum#coerce
Based on patch by Juanito Fatas [Fixes GH-360]
https://github.com/ruby/ruby/pull/360
Mon Jul 15 10:56:01 2013 Zachary Scott <e@zzak.io>
* thread.c (mutex_sleep): [DOC] Awake thread will reacquire lock
By Tim Abdulla [Fixes GH-342] https://github.com/ruby/ruby/pull/342
Mon Jul 15 10:45:09 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (nlz16): Use __builtin_clz if possible.
(nlz32): Use __builtin_clz or __builtin_clzl if possible.
(nlz64): Use __builtin_clzl or __builtin_clzll if possible.
(nlz128): Use __builtin_clzll if possible.
* configure.in: Check __builtin_clz, __builtin_clzl and
__builtin_clzll.
Mon Jul 15 09:39:07 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (power_cache_get_power): Use bitsize instead of ceil_log2.
(ones): Removed.
(next_pow2): Removed.
(floor_log2): Removed.
(ceil_log2): Removed.
* configure.in (__builtin_popcountl): Don't check.
Mon Jul 15 02:47:09 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* localeinit.c (rb_locale_charmap, Init_enc_set_filesystem_encoding):
move from encoding.c.
* miniinit.c (rb_locale_charmap, Init_enc_set_filesystem_encoding):
define miniruby specific functions only.
Mon Jul 15 02:32:58 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (rb_enc_init): no longer needs NO_PRESERVED_ENCODING.
* encoding.c (enc_inspect): defer loading autoloaded encoding.
* encoding.c (enc_check_encoding): use is_data_encoding() to check
type consistently.
* encoding.c (must_encoding): return rb_encoding* instead of encoding
index.
* encoding.c (enc_check_encoding): use is_data_encoding() to check
type consistently.
* encoding.c (must_encoding): return rb_encoding* instead of encoding
index.
Mon Jul 15 02:21:39 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (str_fill_term): consider old terminator length, and should
not use rb_enc_ascget since it depends on the current encoding which
may not be compatible with the new terminator. [Bug #8634]
* encoding.c (enc_inspect): use PRIsVALUE to preserve the result
encoding.
Sun Jul 14 23:21:47 2013 Tanaka Akira <akr@fsij.org>
* configure.in: Check __builtin_popcountl, __builtin_bswap32 and
__builtin_bswap64.
* internal.h (swap32): Use the configure result for the condition to
use __builtin_bswap32.
(swap64): Use the configure result for the condition to use
__builtin_bswap64.
* bignum.c (ones): Use the configure result for the condition to use
__builtin_popcountl.
(bary_unpack_internal): Use appropriate types for swap argument.
Sun Jul 14 22:21:11 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_subb): Support xn < yn.
(bigsub_core): Removed.
(bigsub): Don't compare before subtraction. Just subtract and
get the two's complement if the subtraction causes a borrow.
Sun Jul 14 00:36:03 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (DIGSPERLONG): Unused macro removed.
(DIGSPERLL): Ditto.
Sun Jul 14 00:32:51 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (rb_big_aref): Less scan when the number is negative.
Sun Jul 14 00:17:42 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (big_shift): Avoid signed integer overflow.
Sun Jul 14 00:14:15 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_mul_precheck): Use bary_small_lshift or
bary_mul_normal if xl is 1.
Sat Jul 13 22:58:16 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (big_shift3): New function.
big_lshift and big_rshift are merged.
(big_shift2): New function.
(big_lshift): Use big_shift3.
(big_rshift): Ditto.
(check_shiftdown): Removed.
(rb_big_lshift): Use big_shift2 and big_shift3.
(rb_big_rshift): Ditto.
(big_lshift): Removed.
(big_rshift): Ditto.
Sat Jul 13 15:51:38 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_small_lshift): Use size_t instead of long.
(bary_small_rshift): Ditto.
Sat Jul 13 15:33:33 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_small_lshift): Functions moved to remove
declaration.
(bary_small_rshift): Ditto.
Sat Jul 13 12:27:34 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (rb_enc_associate_index): fill new terminator length, not
old one.
Sat Jul 13 12:24:24 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/win32: move from ext/dl and ext/fiddle. since ext/extmk.rb
builds extensions in alphabetical order, compiled?('fiddle') under
ext/dl makes no sense.
Sat Jul 13 09:26:09 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (biglsh_bang): Removed.
(bigrsh_bang): Ditto.
(bigmul1_toom3): Use bary_small_lshift and bary_small_rshift.
Sat Jul 13 01:04:43 2013 Zachary Scott <e@zzak.io>
* lib/rubygems/psych_additions.rb: Ignore Psych docs here
Fri Jul 12 18:10:46 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/fiddle/win32/lib/win32/registry.rb
(Win32::Registry::API#make_wstr): same as r41922.
Fri Jul 12 16:28:37 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (rb_enc_associate_index): refill the terminator if it
becomes longer than before. [ruby-dev:47500] [Bug #8624]
* string.c (str_null_char, str_fill_term): get rid of out of bound
access.
* string.c (rb_str_fill_terminator): add a parameter for the length of
new terminator.
Fri Jul 12 11:26:25 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (rb_hash_reject_bang): do not call rb_hash_foreach() if RHash
has ntbl and it is empty.
Fri Jul 12 11:17:41 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (recursive_hash): use RHASH_SIZE() to check hash size.
Fri Jul 12 00:20:00 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (rb_hash_size): use RHASH_SIZE().
Fri Jul 12 00:08:24 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (rb_hash_values): set array capa to RHASH_SIZE().
Thu Jul 11 23:54:45 2013 Masaki Matsushita <glass.saga@gmail.com>
* hash.c (rb_hash_keys): set array capa to RHASH_SIZE().
Thu Jul 11 21:30:17 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (rb_w32_pow): undef pow to get rid of infinite
recursive call. re-fix [Bug #8495]. [ruby-core:55923] [Bug #8621]
Thu Jul 11 20:18:13 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/win32/lib/win32/registry.rb (Win32::Registry::API#make_wstr):
remove workaround to append WCHAR terminator.
* transcode.c (str_encode_associate): fill terminator after conversion.
* string.c (rb_enc_str_new, rb_str_set_len, rb_str_resize): fill
minimum length of the encoding as the terminator.
* string.c (str_buf_cat, rb_str_buf_append, rb_str_splice_0): ditto.
* string.c (str_make_independent_expand, rb_str_modify_expand): make
the capacity enough for multi-byte terminator.
* string.c (rb_string_value_cstr): fill minimum length of the encoding
as the terminator.
* string.c (rb_string_value_cstr): check null char in char, not in
byte.
Thu Jul 11 14:48:35 2013 Zachary Scott <e@zzak.io>
* array.c: Replace confusing example for #reverse_each in overview
Patch by Earl St Sauver [Fixes documenting-ruby/ruby-12]
https://github.com/documenting-ruby/ruby/pull/12
Thu Jul 11 14:22:37 2013 Zachary Scott <e@zzak.io>
* test/drb/ut_eq.rb: Use localhost for drb tests [Bug #7311]
Patch by Vit Ondruch [ruby-core:49101]
* test/drb/ut_array.rb: ditto
* test/drb/ut_array_drbssl.rb: ditto
Thu Jul 11 13:48:03 2013 Zachary Scott <e@zzak.io>
* sprintf.c: Fix typo patch by @hynkle [Fixes GH-357]
https://github.com/ruby/ruby/pull/357
Thu Jul 11 13:00:34 2013 Zachary Scott <e@zzak.io>
* lib/securerandom.rb: Refactor conditions by Rafal Chmiel
[Fixes GH-326] https://github.com/ruby/ruby/pull/326
Thu Jul 11 12:04:47 2013 Tanaka Akira <akr@fsij.org>
* bignum.c: Don't use toom3 after once karatsuba is chosen.
(mulfunc_t): New type.
(bary_mul_toom3_start): Renamed from bary_mul.
(bary_mul_karatsuba_start): Renamed from bary_mul.
(bary_mul_balance_with_mulfunc): Renamed from bary_mul_balance and
new argument, mulfunc, is added.
(rb_big_mul_balance): Invoke bary_mul_balance_with_mulfunc with
bary_mul_toom3_start.
(bary_mul_karatsuba): Invoke bary_mul_karatsuba_start instead of
bary_mul.
(bary_mul_precheck): Extracted from bary_mul.
(bary_mul_karatsuba_branch): Extracted from bary_mul.
(bary_mul_karatsuba_start): New function to call bary_mul_precheck
and bary_mul_karatsuba_branch.
(bary_mul_toom3_branch): Extracted from bary_mul.
(bary_mul_toom3_start): New function to call bary_mul_precheck and
bary_mul_toom3_branch.
(bary_mul): Just call bary_mul_toom3_start.
Arguments for work memory are removed.
(rb_cstr_to_inum): Follow the bary_mul change.
(bigmul0): Ditto.
Thu Jul 11 10:46:38 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/probes_to_wiki.rb: fix usage comment. use Enumerable#grep
which yields each elements to reduce unnecessary array.
Thu Jul 11 10:09:18 2013 NARUSE, Yui <naruse@ruby-lang.org>
* process.c (rb_daemon): daemon(3) is implemented with fork(2).
Therefore it needs rb_thread_atfork(). (and revert r41903)
Thu Jul 11 03:22:10 2013 Aaron Patterson <aaron@tenderlovemaking.com>
* tool/probes_to_wiki.rb: adding a script to convert probes.d to wiki
format for easy wiki updates.
Thu Jul 11 00:54:07 2013 Zachary Scott <zachary@zacharyscott.net>
* man/ri.1: Incorrect use of .Dd macro [Bug #8620] by Tristan Hill
Thu Jul 11 00:48:29 2013 Zachary Scott <zachary@zacharyscott.net>
* lib/delegate.rb: Add example for __setobj__ and __getobj__
[Bug #8615] Patch by Caleb Thompson
Wed Jul 10 23:29:22 2013 Zachary Scott <zachary@zacharyscott.net>
* lib/logger.rb: Use :call-seq: for method signature rdoc
Wed Jul 10 23:23:18 2013 Zachary Scott <zachary@zacharyscott.net>
* lib/logger.rb (#add): Remove incorrect rdoc for return value
[Bug #8567] Reported by Tim Pease.
Wed Jul 10 23:12:00 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_subpos): make public function.
Wed Jul 10 22:44:19 2013 Tanaka Akira <akr@fsij.org>
* bignum.c: Add a static assertion for RBIGNUM_EMBED_LEN_MAX.
Wed Jul 10 22:31:25 2013 Masaki Matsushita <glass.saga@gmail.com>
* string.c (rb_str_index): cache single byte flag and some
cosmetic changes.
Wed Jul 10 22:03:27 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_2comp): Don't use bary_plus_one.
(bary_add_one): Replaced by the implementation of bary_plus_one.
Wed Jul 10 20:48:22 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bignum.c (sizeof_bdigit_dbl): check sizeof(BDIGIT_DBL).
* internal.h (STATIC_ASSERT): move from enum.c.
Wed Jul 10 20:08:21 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (SIZEOF_BDIGIT_DBL): Add a ifdef guard for test.
Wed Jul 10 14:18:59 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (fork_daemon): kill the other threads all and abandon the
kept mutexes.
Wed Jul 10 11:35:36 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* test/net/http/test_http.rb (TestNetHTTP_v1_2#test_get,
TestNetHTTP_v1_2_chunked#test_get): shouldn't check
HttpResponse#decode_content if Zlib is not available.
ko1 complained via IRC.
Wed Jul 10 10:20:07 2013 NARUSE, Yui <naruse@ruby-lang.org>
* tool/rbinstall.rb: always require rubygems to stabilize rubygems
related status like whether Gem::Specification is defined or not.
* tool/rbinstall.rb (Gem::Specification.unresolved_deps): define stub.
Wed Jul 10 08:21:15 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Import RubyGems 2.1
* test/rubygems: Ditto.
Wed Jul 10 07:34:34 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/ext/ext_conf_builder.rb: Remove siteconf file after
building the gem.
* test/rubygems/test_gem_ext_ext_conf_builder.rb: Test for the above.
* lib/rubygems/psych_tree.rb (module Gem): Add backward compatibility
for r41148
* test/rubygems/test_gem_package.rb: Add backward compatibility for
double-slash elimination.
Wed Jul 10 06:22:27 2013 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_parse.c (date_zone_to_diff): [ruby-core:55831].
Wed Jul 10 00:41:42 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_mul): x*1 is x.
Tue Jul 9 22:24:39 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_mul1): No need to invoke MEMZERO at last.
(bary_mul_single): Invoke MEMZERO here.
Tue Jul 9 21:40:01 2013 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_text.rb: Add missing tests for Text#<<.
Reported by nagachika. Thanks!!!
Tue Jul 9 18:02:38 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/fileutils.rb (FileUtils#chown_R): Do not skip traversal even
if user and group are both nil, to be consistent with #chown and
other commands.
Tue Jul 9 17:58:26 2013 Akinori MUSHA <knu@iDaemons.org>
* test/fileutils/test_fileutils.rb
(TestFileUtils#assert_output_lines): New utility assertion
method for testing verbose output.
Tue Jul 9 17:43:57 2013 Koichi Sasada <ko1@atdot.net>
* test/test_tracer.rb: catch up recent rubygems changes.
Tue Jul 9 16:58:30 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/{dl,fiddle}/win32/lib/win32/registry.rb: hope that the final
resolution to fix the failure of test-all. and includes Win64
support (fixed a potential bug).
Tue Jul 9 15:57:20 2013 Akinori MUSHA <knu@iDaemons.org>
* object.c: Fix rdoc for Kernel#<=>. [Fixes GH-352]
Tue Jul 9 15:53:51 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/fileutils.rb (FileUtils#mode_to_s): Define mode_to_s() also
as singleton method, or FileUtils.chmod fails in verbose mode.
Tue Jul 9 15:16:02 2013 Akinori MUSHA <knu@iDaemons.org>
* test/fileutils/fileasserts.rb
(Test::Unit::FileAssertions#assert_not_symlink): Add a missing
optional argument "message".
Tue Jul 9 15:03:24 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): If user
and group are both nil, print ":".
Tue Jul 9 12:47:08 2013 Masaki Matsushita <glass.saga@gmail.com>
* io.c (appendline): use READ_CHAR_PENDING_XXX macros and
RSTRING_END().
* io.c (rb_io_getline_1): rewrite nested if statement into one
statement.
Tue Jul 9 11:04:35 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/{dl,fiddle}/win32/lib/win32/registry.rb (Win32::Registry#check):
should report the position of the error.
* ext/{dl,fiddle}/win32/lib/win32/registry.rb
(Win32::Registry#QueryValue): workaround for test-all crash.
Tue Jul 9 10:27:56 2013 NAKAMURA Usaku <usa@ruby-lang.org>