-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
4980 lines (3138 loc) · 165 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 Jun 14 08:28:59 2014 Zachary Scott <e@zzak.io>
* man/rake.1: [DOC] Update links for Rake, patch by @hsbt [Bug #9904]
[Fixes GH-628] https://github.com/ruby/ruby/pull/628
Fri Jun 13 17:58:58 2014 Koichi Sasada <ko1@atdot.net>
* vm_trace.c: add new method TracePoint.stat to debug
TracePoint mechanism.
Ruby users should not use this method. So I don't note this method
in the NEWS file.
* test/runner.rb: detect zombie active TracePoints with
TracePoint.stat.
Fri Jun 13 17:46:31 2014 Koichi Sasada <ko1@atdot.net>
* vm_trace.c: clear and restore recursive checking thread local data
to avoid unexpected throw from TracePoint.
[Bug #9940]
* test/ruby/test_settracefunc.rb: add a test.
* thread.c: adde
* rb_threadptr_reset_recursive_data(rb_thread_t *th);
* rb_threadptr_restore_recursive_data(rb_thread_t *th, VALUE old);
* vm_core.h: ditto.
Fri Jun 13 17:33:14 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_combination): iterate on a shared copy, and use
array of indexes instead of array of chosen objects.
[ruby-core:63149] [Bug #9939]
* array.c (yield_indexed_values): extract from permute0(),
rpermute0(), and rcombinate0().
Fri Jun 13 13:42:58 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_permutation): `p` is the array of size `r`, as
commented at permute0(). since `n >= r` here, buffer overflow
never happened, just reduce unnecessary allocation though.
Thu Jun 12 20:32:28 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_resize): should consider the capacity instead
of the old length, as pointed out by nagachika.
Thu Jun 12 18:31:01 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/net/http/responses.rb: added Net::HTTPPermanentRedirect(308)
Contributed by @yorkie [fix GH-638]
Thu Jun 12 13:27:38 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_freeze): shrink the buffer before freezing, as
pointed out by Eric Wong at [ruby-core:63119].
Thu Jun 12 13:09:03 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (expand_path): shrink expanded path which no longer needs
rooms to append. [ruby-core:63114] [Bug #9934]
Wed Jun 11 17:37:48 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (rb_cv_scalar_pthread_t): pthread_t is not required
to be a scalar type.
* thread.c (fill_thread_id_string, thread_id_str): dump pthread_t
in hexadecimal form if it is not a scalar type, assume it can be
represented in a pointer form otherwise. based on the patch by
Rei Odaira at [ruby-core:62867]. [ruby-core:62857] [Bug #9884]
* thread_pthread.c (Init_native_thread, thread_start_func_1),
(native_thread_create): set thread_id_str if needed.
* vm_core.h (rb_thread_t): add thread_id_string if needed.
Wed Jun 11 01:53:22 2014 Koichi Sasada <ko1@atdot.net>
* gc.c: invoke GC before memory allocation (xmalloc/xrealloc)
when GC.stress = true.
[Bug #9859]
* test/ruby/test_gc.rb: add a test.
Tue Jun 10 13:20:14 2014 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/core.rb: Provide a mechanism to specify the
max_multipart_length of multipart data.
[Feature #8370] patch by Leif Eriksen <leif.eriksen.au@gmail.com>
Tue Jun 10 10:57:07 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/csv.rb (CSV#<<): honor explicitly given encoding. based on
the patch by DAISUKE TANIWAKI <daisuketaniwaki AT gmail.com> at
[ruby-core:62113]. [Bug #9766]
Mon Jun 9 20:40:48 2014 Koichi Sasada <ko1@atdot.net>
* gc.c: change full GC timing to keep lower memory usage.
Extend heap only at
(1) after major GC
or
(2) after several (two times, at current) minor GC
Details in https://bugs.ruby-lang.org/issues/9607#note-9
[Bug #9607]
Mon Jun 9 16:01:41 2014 Masahiro Ide <imasahiro9@gmail.com>
* gc.c (gcdebug_sentinel): fix typo, "sentinel" not "sential".
[fix GH-634]
Mon Jun 9 00:04:25 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (posix_fadvise): disable use of posix_fadvise
itself on 32-bit AIX. [ruby-core:62968] [Bug #9914]
Sun Jun 8 23:28:00 2014 <kanemoto@ruby-lang.org>
* io.c (rb_io_advise): AIX currently does not support a 32-bit call to
posix_fadvise() if _LARGE_FILES is defined. Patch by Rei Odaira.
[ruby-core:62968] [Bug #9914]
Sun Jun 8 04:52:40 2014 Jun Hiroe <Jun.Hiroe@gmail.com>
* string.c (rb_str_slice_bang): [DOC] update return value against
a fixnum, which has changed because of M17N. [fix GH-631]
Sat Jun 7 22:13:42 2014 Benoit Daloze <eregontp@gmail.com>
* numeric.c (do_coerce): Add a warning when an exception is raised
or an invalid value is returned in #coerce called by
numeric comparison operators and the exception
thrown by the caller has no information on the failure.
In the next release such exception should not be rescued or
should be the cause of the caller exception. nil is accepted
as the "no possible coercion" return value. See #7688.
* test/ruby/test_numeric.rb: Add corresponding test.
Sat Jun 7 18:15:33 2014 Benoit Daloze <eregontp@gmail.com>
* numeric.c (bit_coerce): remove constant parameter `err'
(always TRUE) of bit_coerce().
Sat Jun 7 16:01:57 2014 Yutaka Kanemoto <kanemoto@ruby-lang.org>
* cont.c (rb_fiber_struct): keep context.uc_stack.ss_sp and context.uc_stack.ss_size
for later use. Patch by Rei Odaira. [ruby-core:62945] [Bug #9905]
Sat Jun 7 12:51:51 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (read_all): truncate the buffer before appending read data,
instead of truncating before reading.
[ruby-core:55951] [Bug #8625]
Sat Jun 7 12:28:53 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/digest/digest.c (rb_digest_instance_equal): no need to call
`to_s` twice. [Bug #9913]
Sat Jun 7 11:35:01 2014 Tanaka Akira <akr@fsij.org>
* object.c (rb_mod_initialize_clone): Override Kernel#initialize_clone
to avoid an exception on Class.new.freeze.clone.to_s.
Reported by Andrew Grimm. [ruby-core:41858] [Bug #5828]
Sat Jun 7 06:03:11 2014 Benoit Daloze <eregontp@gmail.com>
* ext/digest/digest.c (rb_digest_instance_equal):
fix #== for non-string arguments. [ruby-core:62967] [Bug #9913]
* test/digest/test_digest.rb: add test for above.
Fri Jun 6 22:19:26 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (private_recv_p): check by node type, instead of a
magic number.
* node.h (NODE_PRIVATE_RECV), parse.y (attrset_gen): remove
Fri Jun 6 17:07:08 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_compile_each), parse.y (new_attr_op_assign_gen):
allow op assign to a private attribute.
[ruby-core:62949] [Bug #9907]
Fri Jun 6 13:39:32 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (io_setstrbuf, io_read): should not shorten the given buffer until
read succeeds. [ruby-core:55951] [Bug #8625]
Fri Jun 6 07:41:41 2014 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/yaml_tree.rb: dump empty symbols with a
tag so that they can be parsed on input. [Bug #9873] [ruby-core:62825]
* test/psych/test_symbol.rb: test for change
Thu Jun 5 16:08:39 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_page_sweep): refactoring.
* gc.c (gc_page_sweep): should not set, but add final_slots into
sweep_page->final_slots.
Thu Jun 5 14:36:24 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (jemalloc): check for the header regardless drop-in
libjemalloc is found, for `malloc_conf` declaration.
* version.c (ruby_show_version): show `malloc_conf` if set.
[Feature #9113]
* configure.in (with-jemalloc): also check for header, for ABIs
which JEMALLOC_MANGLE is needed, i.e., Mach-O and PE-COFF
platforms. [ruby-core:62939] [Feature #9113]
* include/ruby/missing.h: include alternative malloc header to
replace memory management functions.
* dln.c, io.c, parse.y, st.c: undef malloc family before
re-definition to suppress warnings.
Thu Jun 5 12:52:18 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* man/ruby.1: remove rubyforge entry.
Thu Jun 5 12:45:32 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* misc/README: use github link instead of rubyforge.
Thu Jun 5 10:03:29 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (obj_free): check also FL_PROMOTED bit by RVALUE_OLD_P().
Thu Jun 5 03:45:28 2014 Eric Wong <e@80x24.org>
* configure.in: add --with-jemalloc option
[ruby-core:62912]
Wed Jun 4 22:28:14 2014 Koichi Sasada <ko1@atdot.net>
* gc.c: introduce RZombie to manage zombie objects.
Rewrite finalizing logics with this type.
* gc.c (gc_verify_internal_consistency): verify zombie (finalizing)
objects count.
Wed Jun 4 22:09:53 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* re.c (match_aref, rb_reg_regsub): consider encoding of captured
names, encoding-incompatible should not match.
[ruby-dev:48278] [Bug #9903]
Wed Jun 4 21:23:52 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* re.c (match_aref): should not ignore name after NUL byte.
[ruby-dev:48275] [Bug #9902]
Wed Jun 4 04:08:37 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (core_hash_merge_kwd): should return the result hash, which
may be converted from and differ from the given argument.
[ruby-core:62921] [Bug #9898]
Tue Jun 3 23:32:34 2014 Tanaka Akira <akr@fsij.org>
* ruby.c (load_file_internal2): Extracted from load_file_internal.
(load_file_internal): Invoke load_file_internal2 using rb_protect.
Close an opened FD if load_file_internal2 raises an exception.
Tue Jun 3 19:11:45 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (rb_objspace_free): should not rest_sweep() here.
Some data structures are already freed.
Tue Jun 3 18:43:51 2014 Koichi Sasada <ko1@atdot.net>
* test/ruby/test_gc.rb: allocate more objects to invoke GC by newobj.
GC allows extending pages depends on heap_increment.
Tue Jun 3 18:01:27 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (rb_gc_call_finalizer_at_exit): add
gc_verify_internal_consistency() when RGENGC_CHECK_MODE >= 2.
Tue Jun 3 17:54:21 2014 Koichi Sasada <ko1@atdot.net>
* gc.c: change the counting method for young objects.
clear counter at the beginning of every GC and
count promoted (infant->young) objects.
Some promotions (infant->young) are transition of promoting to old
objects. We should not count such promotions.
With this technique, we don't need to check young objects
at obj_free().
Tue Jun 3 16:38:19 2014 Koichi Sasada <ko1@atdot.net>
* gc.c: add verifying counters code in gc_verify_internal_consistency().
gc_verify_internal_consistency() counts all
- live objects
- young objects (if age2 promotion)
- old objects
in all pages and compares with objspace managing counters.
* gc.c (gc_after_sweep): do gc_verify_internal_consistency()
when RGENGC_CHECK_MODE >= 2.
Tue Jun 3 13:14:04 2014 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (body_type_1part): Gmail IMAP reports a body
type as "MIXED" followed immediately by params
[ruby-core:62864] [Bug #9885]
Patch by @rayners (David Raynes). [Fixes GH-622]
https://github.com/ruby/ruby/pull/622
Tue Jun 3 13:18:24 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (objspace_live_slot): live slot count should not include final
slot (contains T_ZOMBIE) count.
Tue Jun 3 13:03:21 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (obj_free): fix spacing.
Tue Jun 3 12:59:32 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (check_gen_consistency): fix error message.
Tue Jun 3 12:40:23 2014 Koichi Sasada <ko1@atdot.net>
* gc.c: count old/young objects more correctly.
* gc.c (RVALUE_DEMOTE_FROM_OLD): decrement old object count.
* gc.c (RVALUE_DEMOTE_FROM_YOUNG): decrement young object count.
* gc.c (rb_gc_resurrect): increment old object count.
* gc.c (gc_marks_body): should not add old object count.
This code is completely my misunderstanding.
* gc.c (rb_gc_force_recycle): decrement young or old object count
correctly.
Tue Jun 3 12:26:47 2014 Koichi Sasada <ko1@atdot.net>
* test/ruby/memory_status.rb: add $LOAD_PATH to load test/unit
correctly for fiddle/import unavailable environments.
Tue Jun 3 09:45:13 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* test/openssl/test_ssl.rb (OpenSSL::TestSSL#test_verify_result):
shouldn't use same server for respective tests, because the 1st
test sometimes kills the server main loop silently.
[Bug #9881] [ruby-dev:48266]
Tue Jun 3 01:34:59 2014 Zachary Scott <e@zzak.io>
* README.EXT: [DOC] Add rb_call_super when subclassing from @robin850
[Fixes GH-623] https://github.com/ruby/ruby/pull/623
Mon Jun 2 17:14:49 2014 Koichi Sasada <ko1@atdot.net>
* vm.c (ruby_vm_destruct): remove useless call of
rb_gc_force_recycle().
At this line, a VM object is already freed
(is changed to T_NONE) by rb_gc_call_finalizer_at_exit().
Mon Jun 2 15:50:24 2014 Koichi Sasada <ko1@atdot.net>
* eval.c (rb_using_refinement): add write-barriers for
cref->nd_refinements.
Mon Jun 2 12:26:08 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* CONTRIBUTING.md: added contributing guide for github. [fix GH-625]
Mon Jun 2 07:30:33 2014 Tanaka Akira <akr@fsij.org>
* test/ruby/envutil.rb (default_warning): New method.
* test/ruby/test_autoload.rb: Use EnvUtil.default_warning.
Mon Jun 2 07:05:59 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/encoding.h: constify `rb_encoding` arguments.
* include/ruby/oniguruma.h: constify `OnigEncoding` arguments.
Sun Jun 1 12:05:10 2014 Tanaka Akira <akr@fsij.org>
* test/drb: Wrap tests definitions by DRbTests module. This makes
several tests (ACLEntryTest, TestBug4409, etc.) easier to understand
that they are tests for DRb.
Sun Jun 1 11:36:25 2014 Tanaka Akira <akr@fsij.org>
* lib/rinda/ring.rb (RingFinger#make_socket): Close the socket on
exception.
Sun Jun 1 06:55:26 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (intern_str): dynamic attrset ID is registered by
`rb_id_attrset()` already, so no further registration is needed.
[ruby-core:62861]
Sun Jun 1 04:52:47 2014 Zachary Scott <e@zzak.io>
* lib/English.rb: [DOC] $LOADED_FEATURES moved to load.c [Fixes GH-620]
Patch submitted by @leafac in https://github.com/ruby/ruby/pull/620
* doc/globals.rdoc: Added $LOADED_FEATURES to list
Sat May 31 22:30:14 2014 Tanaka Akira <akr@fsij.org>
* test/lib/leakchecker.rb: Leak checker extracted from
test/lib/minitest/unit.rb.
Sat May 31 21:15:43 2014 URABE Shyouhei <shyouhei@ruby-lang.org>
* thread.c (rb_thread_atfork_internal): My compiler complains
about this variable being used before initialized. I looked at
the code and expanded the macro and turned out it was actually
USED for pointer arithmetic, not dereferenced. So this was
never a serious bug. But is annoying indeed to see warnings
every time. I added `=0` and all went healthy.
* configure.in: Also, I found that the problematic macro expansion
only happens when we lack __typeof__ C extension, which shall
not be the case of my compiler. I added AC_C_TYPEOF to kick ass.
Sat May 31 16:32:50 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/ipaddr.rb: extracted inline tests into test dir.
* test/test_ipaddr.rb: ditto.
Sat May 31 16:29:21 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* ext/digest/lib/digest/hmac.rb: extracted inline tests into test dir.
* test/digest/test_digest_hmac.rb: ditto.
Sat May 31 16:02:03 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/test_syslog.rb: remove executable.
Sat May 31 08:58:32 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enc/unicode.c (init_case_fold_table): no longer need to
initialize tables at runtime.
* enc/unicode/case-folding.rb (lookup_hash): make perfect hash to
lookup case unfolding table 3.
* enc/unicode/case-folding.rb (lookup_hash): make perfect hash to
lookup case unfolding table 2.
* enc/unicode/case-folding.rb (lookup_hash): make perfect hash to
lookup case unfolding table 1.
* enc/unicode/case-folding.rb (lookup_hash): make perfect hash to
lookup case folding table.
* enc/unicode/case-folding.rb (print_table): merge non-locale and
locale tables, and reduce initializing loops.
* enc/unicode/case-folding.rb (CaseFolding): modularize, and add
--output-file option.
* enc/unicode/case-folding.rb: script to convert CaseFolding.txt,
translated from CaseFolding.py.
Sat May 31 08:31:41 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Check Tempfile leaks for each test method
again.
Sat May 31 03:50:50 2014 Zachary Scott <e@zzak.io>
* lib/delegate.rb: [DOC] Document raise in Delegator class
Patch by @lucasmazza. [Fixes GH-621]
https://github.com/ruby/ruby/pull/621
Fri May 30 21:23:26 2014 Tanaka Akira <akr@fsij.org>
* lib/webrick/server.rb: Use a pipe to detect server shutdown.
shutdown() or close() for listening socket is not a reliable.
Actually, both doesn't work (doesn't wake up select()) on
DragonFly BSD 3.6.2.
* test/webrick/utils.rb: :ShutdownSocketWithoutClose is not required
now to immediate server shutdown detection.
This fixes fd leaks.
* test/net/http/utils.rb: Ditto.
Fri May 30 20:58:37 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb (check_fd_leak): Sort the inspected
objects list for a FD.
Fri May 30 18:06:55 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb (check_fd_leak): Try GC to delete leaked
FDs.
Fri May 30 12:05:59 2014 NARUSE, Yui <naruse@ruby-lang.org>
* test/lib/test/unit/parallel.rb (_run_suite): orig_stdout may be nil
though I don't know the reason.
Fri May 30 11:33:35 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_substr): need to reset code range for shared
string too, not only copied string.
[ruby-core:62842] [Bug #9882]
Fri May 30 10:22:21 2014 Mark Lorenz <mlorenz@covermymeds.com>
* lib/erb.rb (result): [DOC] no longer accepts a Proc, as
Kernel.eval does not. [fix GH-619]
Fri May 30 07:25:46 2014 Tanaka Akira <akr@fsij.org>
* ext/-test-/dir: Dir#fileno implemented.
* test/lib/minitest/unit.rb (find_fds): Don't return the fd used to
scan /proc/$$/fd.
Fri May 30 04:48:00 2014 Eric Wong <e@80x24.org>
* parse.y (rb_gc_mark_parser): remove, empty since r8758
* internal.h: ditto, not usable from extensions since 2.0.0
* gc.c (gc_mark_roots): remove checkpoint for parser
Thu May 29 23:27:50 2014 Rei Odaira <Rei.Odaira@gmail.com>
* signal.c (ruby_signal): should return either `old.sa_sigaction`
or `old.sa_handler`, depending on whether `SA_SIGINFO` is set in
`old.sa_flags`, because they may not be a union.
[ruby-core:62836] [Bug #9878]
Thu May 29 23:11:20 2014 Tanaka Akira <akr@fsij.org>
* io.c (pipe_open): Close pipes when rb_execarg_fixup() raises
an exception.
(rb_execarg_fixup_v): New function.
Thu May 29 22:18:57 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb (capture_subprocess_io): Close fds.
Thu May 29 19:47:08 2014 Tanaka Akira <akr@fsij.org>
* io.c (rb_io_s_pipe): Close pipes if io_encoding_set() raises an
exception.
(io_encoding_set_v): New function.
Thu May 29 19:42:49 2014 Tanaka Akira <akr@fsij.org>
* lib/csv.rb (CSV.open): Close the opened file when an exception
occur.
Thu May 29 19:31:10 2014 Tanaka Akira <akr@fsij.org>
* ext/openssl/lib/openssl/ssl.rb (SSLServer#accept): Close a socket
if any exception occur.
Thu May 29 05:05:29 2014 Eric Wong <e@80x24.org>
* include/ruby/ruby.h: Hide Symbol internals.
(struct RSymbol): moved to internal.h
(RSYMBOL): ditto
Thu May 29 00:28:56 2014 Tanaka Akira <akr@fsij.org>
* ext/socket/unixsocket.c (rsock_init_unixsock): Open a socket
after path length check.
This fixes a fd leak by TestSocket_UNIXSocket#test_too_long_path.
Wed May 28 23:04:35 2014 Tanaka Akira <akr@fsij.org>
* test/ruby/test_io.rb (test_flush_in_finalizer1): Use
ObjectSpace.each_object to close files.
GC.start is not reliable.
Wed May 28 19:00:31 2014 Tanaka Akira <akr@fsij.org>
* lib/net/imap.rb (Net::IMAP#initialize): Close the opened socket when
any exception occur.
This fixes a fd leak by IMAPTest#test_imaps_post_connection_check
which start_tls_session() raises an exception.
Wed May 28 18:06:13 2014 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_ssl.c (ossl_ssl_close): Fix sync_close to work
when SSL is not started.
This fix the fd leak by test_https_proxy_authentication in
test/net/http/test_https_proxy.rb.
Wed May 28 10:29:28 2014 Eric Wong <e@80x24.org>
* vm.c (rb_vm_living_threads_foreach): remove function
[ruby-core:62745]
* thread.c (terminate_i): remove
* thread.c (terminate_all): implement (inlines old terminate_i)
* thread.c (rb_thread_terminate_all): use terminate_all
* thread.c (rb_thread_fd_close_i): remove
* thread.c (rb_thread_fd_close): iterate inline
* thread.c (thread_list_i): remove
* thread.c (rb_thread_list): iterate inline
* thread.c (rb_thread_atfork_internal): iterate inline
* thread.c (terminate_atfork_i): update types to remove casts
* thread.c (terminate_atfork_before_exec_i): ditto
* thread.c (struct thgroup_list_params): remove definition
* thread.c (thgroup_list_i): remove
* thread.c (thgroup_list): iterate inline
* thread.c (check_deadlock_i): remove
* thread.c (debug_deadlock_check): implement (inlines check_deadlock_i)
* thread.c (debug_i): remove
* thread.c (rb_check_deadlock): iterate inline
* vm.c (vm_mark_each_thread_func): remove
* vm.c (rb_vm_mark): iterate inline
* vm_core.h (rb_vm_living_threads_remove): remove
* vm_trace.c (clear_trace_func_i): remove
* vm_trace.c (rb_clear_trace_func): iterate inline
Wed May 28 09:30:51 2014 Eric Wong <e@80x24.org>
* signal.c (signal_exec): ignore immediate cmd for SIG_IGN
* signal.c (trap_handler): set cmd to true for SIG_IGN
* signal.c (trap): handle nil and true values for oldcmd
[Bug #9835]
Wed May 28 01:02:54 2014 Tanaka Akira <akr@fsij.org>
* lib/tempfile.rb (Tempfile#inspect): Show "(closed)" if the tempfile
is closed.
Wed May 28 00:38:09 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Use Tempfile#close! instead of
Tempfile#unlink to close file descriptors.
* test/openssl/test_config.rb: Ditto.
* test/ruby/test_io.rb: Ditto.
Wed May 28 00:06:18 2014 Tanaka Akira <akr@fsij.org>
* lib/net/ftp.rb (transfercmd): Close TCP server socket even if an
exception occur.
Tue May 27 23:50:07 2014 Tanaka Akira <akr@fsij.org>
* lib/cgi/core.rb: Use Tempfile#close! instead of Tempfile#unlink
to close file descriptors.
Tue May 27 23:06:46 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_number_literal_suffix): refine error message for
extra dot and digits.
Tue May 27 22:44:20 2014 Tanaka Akira <akr@fsij.org>
* test/rexml: Avoid fd leaks.
Tue May 27 22:24:25 2014 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_document.rb: Indent.
Tue May 27 22:15:29 2014 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_document.rb: Wrap by REXMLTests module.
Tue May 27 22:11:10 2014 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_encoding_2.rb: Remove a needless file.
Tue May 27 22:10:30 2014 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_contrib.rb: Indent.
Tue May 27 21:28:16 2014 NARUSE, Yui <naruse@ruby-lang.org>
* ext/socket/ifaddr.c (ifaddr_inspect_flags): support IFF_SIMPLEX.
Tue May 27 21:03:03 2014 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/: Use REXMLTests as wrapping module for REXML tests.
I avoid using the same module for library in test because
it provides "include REXML" environment in test. Normally,
users don't use REXML on "include REXML" environment. So I
don't want to write tests on "include REXML" environment.
Tue May 27 20:59:37 2014 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_comment.rb: Remove needless REXML module wrapping.
Tue May 27 20:56:49 2014 Kouhei Sutou <kou@cozmixng.org>
* test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.
Tue May 27 20:26:06 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (test_flush_in_finalizer1): some opened fds are
remain before GC, so unlink the tempfile is failed.
Tue May 27 19:07:26 2014 Tanaka Akira <akr@fsij.org>
* io.c (rb_io_autoclose_p): Don't raise on frozen IO.
* test/lib/minitest/unit.rb: IO#autoclose? may raise IOError.
Tue May 27 19:01:49 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/openssl/test_pair.rb: Modify TestSSL#test_read_and_write
to handle partial sysreads. [Bug #7398][ruby-core:49563]
* test/openssl/test_ssl.rb: ditto.
Tue May 27 18:46:23 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/openssl/test_pkcs7.rb: Add tests for PKCS7#type= and add_data.
[Feature #7399][ruby-core:49565]
Tue May 27 17:45:09 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/openssl/test_hmac.rb (test_binary_update): Added Test for
HMAC signing with UTF-8 String. [Bug #7512][ruby-core:50559]
Tue May 27 17:10:14 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/runner.rb: fixed randomly test failure.
[Bug #6573][ruby-core:45563]
Tue May 27 16:58:12 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/test_timeout.rb (test_timeout): inverted test condition.
[Bug #8523]
Tue May 27 12:24:22 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Show leaked file descriptors.
Tue May 27 11:12:56 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_fileno, rb_io_inspect): non-modification does not
error on frozen IO. [ruby-dev:48241] [Bug #9865]
Tue May 27 00:00:21 2014 yui-knk <spiketeika@gmail.com>
* insns.def (defineclass): fix typo in the instruction comment.
[fix GH-618]
Mon May 26 16:33:15 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_file.rb: skip the test of atime on Windows, because
Windows delays updating atime about 1 hour.
see more details:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724290%28v=vs.85%29.aspx
Mon May 26 12:25:36 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optionparser.rb, lib/optparse.rb (OptParse): aliases.
[ruby-core:62751] [Feature #9864]
Mon May 26 07:59:34 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Show Finished threads line-by-line.
Mon May 26 01:39:02 2014 Zachary Scott <e@zzak.io>
* lib/csv.rb: Reject nil as data source for CSV.new, patch by @Peeja.
[Fixes GH-580] https://github.com/ruby/ruby/pull/580
Mon May 26 01:07:51 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Show leaked threads and tempfiles
line-by-line.
Sun May 25 23:02:06 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb (MiniTest::Assertions#diff): Remove
tempfiles.
Sun May 25 22:42:27 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Check tempfile leak for each test class.
Sun May 25 20:31:49 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (ac_cv_func_{getcontext,setcontext}): do not
disable ucontext.h entirely, but disable use of functions only.
`ucontext_t` is necessary in the signal handler now.
Sun May 25 20:00:23 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* signal.c (check_stack_overflow): revert part of r46100, the
previous condition was correct, and fix compilation error on
other architecture linux. [ruby-core:62746] [Bug #9862]
Sun May 25 17:09:13 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Less ObjectSpace.each_object(Tempfile)
invocation.
Sun May 25 16:54:06 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Use Thread.list instead of
ObjectSpace.each_object(Thread).
Sun May 25 15:53:54 2014 Tanaka Akira <akr@fsij.org>
* lib/rinda/ring.rb (Rinda::RingServer#shutdown): Join the killed
threads.
Sun May 25 15:26:17 2014 Tanaka Akira <akr@fsij.org>
* lib/webrick/utils.rb: Override the inspect method of the thread
used in WEBrick::Utils::TimeoutHandler.
Sun May 25 14:22:30 2014 Tanaka Akira <akr@fsij.org>
* test/openssl: Join threads.
Sun May 25 12:46:47 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_bug_context): new function to report bug with
context.
* vm_dump.c (rb_vm_bugreport): accepts `ucontext_t` argument to
dump machine registers. based on [GH-584].
* signal.c (sigbus, sigsegv): dump machine registers if available.
Sun May 25 12:32:42 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Sort leaked threads and tempfiles.
Sun May 25 12:15:30 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* signal.c (check_stack_overflow): fix condition to use ucontext
register, mcontext_t dereference, and its member names, on Mac
OS X.
Sun May 25 11:58:26 2014 Zachary Scott <e@zzak.io>
* enumerator.c: [DOC] Fix example to show Enumerator#peek behavior
Patch by Erik Hollembeak [Bug #9814]
Sun May 25 11:56:33 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vsnprintf.c (BSD_vfprintf): fix string width when precision is
given. as the result of `memchr` is NULL or its offset from the
start cannot exceed the size, the comparison was always false.
[ruby-core:62737] [Bug #9861]
Sun May 25 10:34:15 2014 Zachary Scott <e@zzak.io>
* doc/regexp.rdoc: [DOC] Clarify whitespace matching by @allolex
[Fixes GH-606] https://github.com/ruby/ruby/pull/606
Sun May 25 10:19:34 2014 Zachary Scott <e@zzak.io>
* enum.c: [DOC] Use #find in example to clarify alias by @rachellogie
Patch submitted via documenting-ruby/ruby#34
Sun May 25 10:16:43 2014 Zachary Scott <e@zzak.io>
* cont.c: [DOC] Fix rdoc in example for Fiber#transfer by @majjoha
Patch submitted via documenting-ruby/ruby#33
Sun May 25 10:01:11 2014 Zachary Scott <e@zzak.io>
* lib/irb.rb: [DOC] Fixed syntax error in example by @jasdeepsingh.
Patch submitted via documenting-ruby/ruby#32
Sun May 25 09:58:02 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/fileutils/test_fileutils.rb (test_chown_R): Add tests for
chown_R. [Feature #9383][ruby-core:59641]
Sun May 25 09:57:09 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/fileutils/test_fileutils.rb: Added recursively chown tests.
[Feature #9303][ruby-core:59325]
Sun May 25 09:41:56 2014 Zachary Scott <e@zzak.io>
* class.c: [DOC] Fixed grammar and examples of instance_methods.
By @alex-frost via documenting-ruby/ruby#31
Sun May 25 09:40:44 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Show leaked threads and tempfiles.
Sun May 25 08:54:38 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/openssl/test_partial_record_read.rb: Testing read_nonblock on
a partial TLS record results in IO::WaitReadable by @mohamedhafez.
[fix GH-547]
Sun May 25 08:43:16 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/logger.rb: refactored to include Logger::Period.
Sun May 25 06:50:19 2014 Zachary Scott <e@zzak.io>
* vm_eval.c: [DOC] Improve instance_eval description when given a
block or String arguments. By @nathanl via documenting-ruby/ruby#28
Sun May 25 06:29:39 2014 Zachary Scott <e@zzak.io>
* array.c: [DOC] Clarify default argument for Array.new.
By @Elffers [Fixes GH-610]
Sat May 24 22:37:20 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* array.c: [DOC] Add more documents to shuffle! and shuffle.
Contributed by @JuanitoFatas [ci skip][fix GH-612]
Sat May 24 22:28:55 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/lib/minitest/.document: removed unused configuration.
Sat May 24 19:08:47 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/spec.rb: Unused file removed.
* test/lib/minitest/autorun.rb: Don't require minitest/spec.
* test/lib/minitest/benchmark.rb: Ditto.
Sat May 24 18:45:30 2014 Tanaka Akira <akr@fsij.org>
* test/benchmark/test_benchmark.rb: Use test/unit.
Sat May 24 16:20:59 2014 Eric Wong <e@80x24.org>
* process.c (proc_getgroups, proc_setgroups): use ALLOCV_N
[Bug #9856]
Sat May 24 15:49:39 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb (parallelize_me!): Removed.
This fixes the line-by-line structure of the test result in verbose
mode. [ruby-core:54905]
* test/lib/minitest/parallel_each.rb: Removed.
* test/minitest/test_minitest_mock.rb: Don't call parallelize_me!.
* test/minitest/test_minitest_spec.rb: Ditto.
* test/minitest/test_minitest_unit.rb: Ditto.
Tests for parallel feature removed.
Sat May 24 15:29:10 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/hell.rb: Unused file removed.
* test/lib/minitest/pride.rb: Ditto.
Sat May 24 15:05:32 2014 yui-knk <spiketeika@gmail.com>
* enumerator.c (yielder_yield_push): Insert a break after the
method return value. [fix GH-617]
Sat May 24 14:59:12 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest: Remove comments not appropriate now.
* test/minitest: Ditto.
Sat May 24 14:02:04 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* NEWS: added minitest changes.
Sat May 24 13:42:46 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/lib/test/unit/test-unit.gemspec: removed needless gemspec file.
Sat May 24 09:39:06 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* defs/default_gems: removed minitest entry.
Sat May 24 06:17:33 2014 Ryan Davis <ryand-ruby@zenspider.com>
* lib/minitest: minitest 4.7.5 removed. Need to support proper
gem packaging / installation before minitest 5 can be added.
Sat May 24 05:54:06 2014 Tanaka Akira <akr@fsij.org>