-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
10932 lines (6861 loc) · 360 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 Dec 5 00:56:29 2015 Naohisa Goto <[email protected]>
* include/ruby/ruby.h (RB_OBJ_TAINT): follow-up of r52881.
Turn into void expression not to use unexpected result.
Fix "operands have incompatible types" error with
Oracle Solaris Studio 12.x on Solaris.
Fri Dec 4 19:52:52 2015 Martin Duerst <[email protected]>
* enc/iso_8859_13.c: Added three missing lower/upper-case
character pairs (from Kimihito Matsui)
Fri Dec 4 18:57:57 2015 Martin Duerst <[email protected]>
* enc/iso_8859_4.c: Added missing lower/upper-case character
pair (U+014A and U+014B, LATIN CAPITAL/SMALL LETTER ENG)
(from Kimihito Matsui)
Fri Dec 4 16:48:19 2015 Nobuyoshi Nakada <[email protected]>
* string.c (rb_obj_as_string): fstring should not be infected.
re-apply r52872 and fix a typo.
TODO: other frozen strings also may not be.
Fri Dec 4 15:21:45 2015 SHIBATA Hiroshi <[email protected]>
* lib/rubygems: Update to RubyGems 2.5.0+ HEAD(fdab4c4).
this version includes #1396, #1397, #1398, #1399
* test/rubygems: ditto.
Fri Dec 4 11:22:40 2015 Nobuyoshi Nakada <[email protected]>
* thread.c (rb_thread_setname): name must be ascii-compatible, as
pthread APIs do not accept legacy wide char strings.
Thu Dec 3 15:39:21 2015 SHIBATA Hiroshi <[email protected]>
* lib/scanf.rb: fixed double words typo.
[ci skip][fix GH-1123] Patch by @jwworth
Thu Dec 3 15:37:56 2015 SHIBATA Hiroshi <[email protected]>
* test/ruby/test_mixed_unicode_escapes.rb: fixed typo.
[fix GH-1122] Patch by @davydovanton
* test/ruby/test_object.rb: ditto.
* test/socket/test_tcp.rb: ditto.
Thu Dec 3 15:33:08 2015 Nobuyoshi Nakada <[email protected]>
* sprintf.c (rb_str_format): fix wrong shifting position in
Rational conversion when not at the beginning of the result.
[ruby-core:71806] [Bug #11766]
Thu Dec 3 14:22:16 2015 Nobuyoshi Nakada <[email protected]>
* range.c (range_to_s): should be infected by the receiver.
str2 infects by appending. [ruby-core:71811] [Bug #11767]
Thu Dec 3 11:57:12 2015 Nobuyoshi Nakada <[email protected]>
* configure.in: separate SET_CURRENT_THREAD_NAME, which can set
the name of current thread only, and SET_ANOTHER_THREAD_NAME,
which can set the name of other threads.
* thread.c (rb_thread_setname): use SET_ANOTHER_THREAD_NAME. OS X
is not possible to set another thread name.
* thread_pthread.c (native_set_thread_name, thread_timer): use
SET_CURRENT_THREAD_NAME.
Wed Dec 02 22:57:46 2015 Koichi Sasada <[email protected]>
* vm_core.h, iseq.h: remove rb_iseq_t::variable_body.
Fields in rb_iseq_t::variable_body are contained by
rb_iseq_t::body::mark_ary (hidden Array object).
Index 0 to 2 of mark_ary are reserved by these objects.
* iseq.c: catch up this fix.
* compile.c (rb_iseq_original_iseq): trivial rewrite.
Wed Dec 2 17:19:02 2015 Koichi Sasada <[email protected]>
* iseq.h: introduce ISEQ_ORIGINAL_ISEQ() and
ISEQ_ORIGINAL_ISEQ_ALLOC() macro.
* compile.c: use them to access original iseq buffer.
* iseq.c: ditto.
* vm_core.h: rename iseq field to support this fix.
Wed Dec 2 17:10:32 2015 Koichi Sasada <[email protected]>
* iseq.h: introduce ISEQ_FLIP_CNT_INCREMENT() macro.
* compile.c (iseq_compile_each): use it.
* vm_core.h: rename flip_cnt field to support this fix.
Wed Dec 2 17:05:15 2015 Koichi Sasada <[email protected]>
* iseq.h: introduce ISEQ_COVERAGE() and ISEQ_COVERAGE_SET() macro.
* compile.c: use them.
* iseq.c: ditto.
* iseq.c (rb_iseq_coverage): added.
* thread.c (update_coverage): use rb_iseq_coverage().
* vm_core.h: rename coverage field name to support this fix.
Wed Dec 2 17:00:54 2015 Nobuyoshi Nakada <[email protected]>
* encoding.c (enc_name, rb_enc_name_list_i, rb_enc_aliases_enc_i):
make fstring instead of making each copies.
Wed Dec 2 16:32:08 2015 Koichi Sasada <[email protected]>
* iseq.h: introduce ISEQ_COMPILE_DATA() macro.
* compile.c, iseq.c: use ISEQ_COMPILE_DATA().
* vm_core.h: rename compile_data field to support this fix.
Wed Dec 2 16:27:19 2015 Nobuyoshi Nakada <[email protected]>
* encoding.c (enc_m_loader): defer finding encoding object not to
be infected by marshal source. [ruby-core:71793] [Bug #11760]
* marshal.c (r_object0): enable compatible loader on USERDEF
class. the loader function is called with the class itself,
instead of an allocated object, and the loaded data.
* marshal.c (compat_allocator_table): intialize
compat_allocator_tbl on demand.
* object.c (rb_undefined_alloc): extract from rb_obj_alloc.
Wed Dec 2 15:12:43 2015 SHIBATA Hiroshi <[email protected]>
* configure.in: Fixed double negative comments.
[Bug #11698][ruby-core:71506]
Wed Dec 2 14:55:01 2015 yui-knk <[email protected]>
* test/ruby/test_string.rb: removed non executing tests.
[Misc #11757][ruby-dev:49397]
Wed Dec 2 11:23:06 2015 SHIBATA Hiroshi <[email protected]>
* lib/csv.rb: enable frozen_string_literal.
[fix GH-1116] Patch by @marshall-lee
Wed Dec 2 10:36:25 2015 SHIBATA Hiroshi <[email protected]>
* ext/bigdecimal/bigdecimal.c: Fix double word typo.
[ci skip][fix GH-1120] Patch by @jwworth
Wed Dec 2 07:43:51 2015 Eric Wong <[email protected]>
* ext/openssl/ossl_ssl.c (mSSLExtConfig): make static
(eSSLError): ditto
(ID_callback_state): ditto
(ossl_ssl_ex_vcb_idx): ditto
(ossl_ssl_ex_store_p): ditto
(ossl_ssl_ex_ptr_idx): ditto
* ext/openssl/ossl_ssl.h: remove extern declarations for
mSSLExtConfig and eSSLError
Wed Dec 2 07:41:08 2015 Eric Wong <[email protected]>
* missing/explicit_bzero.c (explicit_bzero): fixup r52839
for compilers with "weak" attribute
Wed Dec 2 06:47:25 2015 KOSAKI Motohiro <[email protected]>
* missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unused
for preventing optimization. Inspired from OpenBSD.
Tue Dec 1 23:36:39 2015 Nobuyoshi Nakada <[email protected]>
* thread.c (rb_thread_setname): allow to reset thread name.
Tue Dec 1 23:14:04 2015 Nobuyoshi Nakada <[email protected]>
* thread.c (rb_thread_setname): check the argument if valid
string. [ruby-core:71774] [Bug #11756]
Tue Dec 1 17:13:41 2015 Nobuyoshi Nakada <[email protected]>
* string.c (rb_string_value_cstr): should not raise on frozen
string.
Tue Dec 1 09:35:29 2015 KOSAKI Motohiro <[email protected]>
* missing/explicit_bzero.c: add a few comment.
Tue Dec 1 09:31:19 2015 KOSAKI Motohiro <[email protected]>
* missing/explicit_bzero.c: add disabling optimization on gcc.
Tue Dec 1 07:50:33 2015 Eric Wong <[email protected]>
* missing/explicit_bzero.c: new file. define explicit_bzero.
Fixup r52806
Thu Oct 22 12:54:43 2015 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (register_ubf_list): renamed from
add_signal_thread_list.
* thread_pthread.c (unregister_ubf_list): renamed
from remove_signal_thread_list.
* thread_pthread.c (ubf_wakeup_all_threads): renamed from
ping_signal_thread_list.
* thread_pthread.c (ubf_wakeup_thread): renamed from
ubf_select_each.
* thread_pthread.c (ubf_threads_empty): renamed from
check_signal_thread_list().
* thread_pthread.c (ubf_list_lock): renamed from
signal_thread_list_lock.
* thread_pthread.c (register_ubf_list): large simplification
by using ccan/list.h.
bonus: removed malloc() and exit(EXIT_FAILURE).
* thread_pthread.c (unregister_ubf_list): ditto.
* thread_pthread.c (ubf_threads_empty): ditto.
* thread_pthread.c (ubf_wakeup_all_threads): ditto.
* thread_pthread.c (print_signal_list): removed.
Thu Oct 22 08:03:49 2015 KOSAKI Motohiro <[email protected]>
* test/ruby/test_rand.rb (TestRand#test_default_seed): add
srand case.
Thu Oct 22 06:33:38 2015 KOSAKI Motohiro <[email protected]>
* random.c (InitVM_Random): move Random::DEFAULT initialization
bits to Init_Random_default.
* random.c (Init_Random_default): renamed from Init_RandomSeed2.
* random.c (Init_RandomSeedCore): renamed from Init_RandomSeed.
Thu Oct 22 06:20:48 2015 KOSAKI Motohiro <[email protected]>
* random.c (Init_RandomSeed): move all Random::DEFAULT
construction bits to Init_RandomSeed2. Random::DEFAULT
and Ruby internal hashes are no longer shared their seed.
* random.c (Init_RandomSeed2): ditto. And, kill evil
rb_obj_reveal() stuff.
* random.c (init_hashseed): add MT argument.
* random.c: (init_siphash): ditto.
* test/ruby/test_rand.rb (TestRand#test_default_seed): new
test for Random::DEFAULT::seed.
Thu Oct 22 05:23:48 2015 KOSAKI Motohiro <[email protected]>
* random.c (init_hashseed, init_siphash): extract initialize
functions.
Thu Oct 22 01:01:34 2015 KOSAKI Motohiro <[email protected]>
* configure.in: sort AC_CHECK_HEADERS() by alphabetical order.
Thu Oct 22 00:19:07 2015 KOSAKI Motohiro <[email protected]>
* random.c (init_randomseed): remove "initial" argument. It never
be used from outside of this function.
Thu Oct 22 00:12:33 2015 KOSAKI Motohiro <[email protected]>
* lib/securerandom.rb (SecureRandom::gen_random): use /dev/urandom
for initialize OpenSSL's rand.
Wed Oct 21 12:10:04 2015 KOSAKI Motohiro <[email protected]>
* ext/openssl/ossl_rand.c (ossl_rand_bytes): RAND_bytes could
be return -1 as an error. Therefore, added error handling.
* ext/openssl/ossl_pkey_dsa.c (dsa_generate): ditto.
Wed Oct 21 09:04:09 2015 KOSAKI Motohiro <[email protected]>
* include/ruby/util.h: remove a warning suppression C4723
(potential divide by zero) for VisualC++. It's meaningless.
Before r26197, there is ruby_div0() in this place and it
actually made divide by zero. But now it's just garbage.
Wed Oct 21 08:23:36 2015 KOSAKI Motohiro <[email protected]>
* random.c: random_raw_seed don't use GRND_NONBLOCK. GRND_NONBLOCK
mean the result might not have an enough cryptic strength and
easy predictable. That's no good for SecureRandom.
Sun Oct 18 17:26:53 2015 KOSAKI Motohiro <[email protected]>
* common.mk: add a rule for explicit_bzero.o.
* configure.in: detect explicit_bzero and memset_s.
* include/ruby/missing.h: add explicit_bzero.
* random.c (init_randomseed): use explicit_bzero() instead of
memset(). memset could be eliminated by compiler optimization.
Mon Nov 30 18:46:44 2015 NARUSE, Yui <[email protected]>
* ext/readline/extconf.rb: call dir_config("libedit")
if --enable-libedit is specified. [Bug #11751]
patched by John Hein
Mon Nov 30 08:44:29 2015 Eric Wong <[email protected]>
* variable.c: remove spurious #define for globals
[ruby-core:71735] [Feature #11749]
Sun Nov 29 09:13:03 2015 Conor Landry <[email protected]>
* NEWS: [DOC] Various grammar corrections and clarifications to
increase readability. [Fix GH-1115]
Sat Nov 28 19:33:55 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_here_document): store dispatched result of
on_tstring_content at the last fragment of a here document.
Fri Nov 27 19:19:44 2015 NARUSE, Yui <[email protected]>
* lib/net/http.rb (connect): detect closed connection and reconnect
If the server closes a keep-alive http connection, the client socket
reaches EOF. To avoid an EOFError, detect the closed connection and
reconnect.
Added test to ensure HTTP#post succeeds even if the
keep-alive-connection has been closed by the server.
by Kristian Hanekamp <[email protected]>
https://github.com/ruby/ruby/pull/1089 fix GH-1089
Thu Nov 26 21:36:40 2015 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_peephole_optimize): enable tail call
optimization for specialized indexers.
* compile.c (iseq_compile_each): blockiseq should be NULL, but not
Qnil.
Thu Nov 26 17:22:53 2015 NARUSE, Yui <[email protected]>
* regcomp.c, regenc.c, regexec.c, regint.h, enc/unicode.c:
Merge Onigmo 58fa099ed1a34367de67fb3d06dd48d076839692
+ https://github.com/k-takata/Onigmo/pull/52
Thu Nov 26 09:50:02 2015 yui-knk <[email protected]>
* test/coverage/test_coverage.rb: Added test-case for Coverage.restart.
[Misc #11732][ruby-dev:49379]
Thu Nov 26 09:46:36 2015 yui-knk <[email protected]>
* test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result
without Coverage.start. [Misc #11726][ruby-core:71622]
Thu Nov 26 07:22:55 2015 Eric Wong <[email protected]>
* test/openssl/test_ssl.rb (test_copy_stream): new test
Wed Nov 25 21:23:39 2015 Nobuyoshi Nakada <[email protected]>
* io.c (copy_stream_body): try to_io conversion before read,
readpartial, and write methods. [ruby-dev:49008] [Bug #11199]
Wed Nov 25 10:55:21 2015 Shugo Maeda <[email protected]>
* io.c (argf_getpartial): should not resize str if the second
argument is not given.
[ruby-core:71668] [Bug #11738]
Tue Nov 24 23:56:25 2015 Naohisa Goto <[email protected]>
* configure.in: On Solaris, it is safe to define _LARGEFILE_SOURCE
when _FILE_OFFSET_BITS=64 is defined (= when 32-bit compile).
Tue Nov 24 10:00:10 2015 SHIBATA Hiroshi <[email protected]>
* lib/rubygems/installer.rb: Fix two double-word typos.
[ci skip][fix GH-1108] Patch by @jwworth
Tue Nov 24 09:17:02 2015 Alexander von Gluck IV <[email protected]>
* beos: Drop support for BeOS now that Haiku is stable.
[Fix GH-1112]
Tue Nov 24 09:16:35 2015 Nobuyoshi Nakada <[email protected]>
* internal.h (rb_gc_for_fd): move to export, as referred by
ext/socket.
Tue Nov 24 09:04:29 2015 David Rodriguez <[email protected]>
* file.c: [DOC] add a missing period to File docs, to terminate
the sentence and separate from the next sentence. [Fix GH-1111]
Tue Nov 24 08:30:06 2015 JuanitoFatas <[email protected]>
* NEWS: Fix the issue number of `Struct#dig`, which should be
[Feature #11688]. [Fix GH-1110]
Tue Nov 24 07:56:54 2015 Eric Wong <[email protected]>
* ext/socket/init.c (rsock_s_accept): handle ENOMEM
Tue Nov 24 07:50:15 2015 Eric Wong <[email protected]>
* dir.c (dir_initialize): use rb_gc_for_fd for ENOMEM
* ext/socket/init.c (rsock_socket): ditto
* ext/socket/socket.c (rsock_socketpair): ditto
* internal.h (rb_gc_for_fd): prototype
* io.c (rb_gc_for_fd): remove static
[ruby-core:71623] [Feature #11727]
Tue Nov 24 06:46:27 2015 Eric Wong <[email protected]>
* io.c (rb_gc_for_fd): new helper function
(ruby_dup): use rb_gc_for_fd
(rb_sysopen): ditto
(rb_fdopen): ditto
(rb_pipe): ditto
[ruby-core:71623] [Feature #11727]
Tue Nov 24 05:13:35 2015 Eric Wong <[email protected]>
* ext/fiddle/function.c (struct nogvl_ffi_call_args):
new struct for GVL release
(nogvl_ffi_call): new function
(function_call): adjust for GVL release
[ruby-core:71642] [Feature #11607]
* ext/fiddle/closure.c (struct callback_args):
new struct for GVL acquire
(with_gvl_callback): adjusted original callback function
(callback): wrapper for conditional GVL acquire
* ext/fiddle/depend: add dependencies
* ext/fiddle/extconf.rb: include top_srcdir for internal.h
* internal.h (ruby_thread_has_gvl_p): expose for fiddle
* vm_core.h (ruby_thread_has_gvl_p): moved to internal.h
* test/fiddle/test_function.rb (test_nogvl_poll): new test
Mon Nov 23 19:53:12 2015 Naohisa Goto <[email protected]>
* configure.in: On Solaris, with gcc, "-std=iso9899:1999"
in $ansi_options is often also needed in CPPFLAGS,
because some feature definitions vary depending on such
standards options.
Mon Nov 23 12:54:39 2015 Hamish Morrison <[email protected]>
* configure.in: remove obsolete workarounds for Haiku.
* dln.c, file.c, io.c: remove obsolete Haiku workarounds.
* thread_pthread.c: add stack bounds detection for Haiku.
* signal.c: get stack pointer from signal context on Haiku.
[ruby-core:67923] [Bug #10811] [Fix GH-1109]
Mon Nov 23 11:44:11 2015 SHIBATA Hiroshi <[email protected]>
* gems/bundled_gems: bump version to minitest-5.8.3
Mon Nov 23 08:55:00 2015 SHIBATA Hiroshi <[email protected]>
* ChangeLog: fix wrong reference for r52714
Sun Nov 22 22:23:37 2015 Rei Odaira <[email protected]>
* gc.c (rb_raw_obj_info): fix compile errors when USE_RGENGC
is 0.
Sun Nov 22 21:58:09 2015 Naohisa Goto <[email protected]>
* lib/cmath.rb: methods which has suffix '!' are now deprecated.
Re-apply r52469 made by Kazuki Tanaka, with fixing bug about
mathn.rb compatibility. [ruby-core:68528] [Feature #10974]
Sun Nov 22 19:36:51 2015 SHIBATA Hiroshi <[email protected]>
* ext/openssl/ossl.c: fix brew command for installation of openssl.
[ci skip][fix GH-1107] Patch by @arthurnn
Sun Nov 22 17:59:50 2015 Naohisa Goto <[email protected]>
* configure.in: On Solaris, add -D_XOPEN_SOURCE=n only when both
AC_TRY_CPP and AC_TRY_COMPILE pass, because some options
(e.g. -std=iso9899:1999) are not set when running C preprocessor
or building ext.
Sun Nov 22 16:53:34 2015 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_peephole_optimize): remove unreachable code
chunk after jump/leave.
* parse.y: move dead code elimination of logical operation to
compile.c. not to warn logical operation of literal constants.
Sun Nov 22 16:37:10 2015 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_peephole_optimize): eliminate always/never
branches after a literal object and when the value is used after
the branch.
Sun Nov 22 01:23:43 2015 Naohisa Goto <[email protected]>
* configure.in: Add -D_XOPEN_SOURCE=500 (or 600 or 700) on Solaris
if available, mainly for enabling some features in sockets.
Sun Nov 22 00:17:22 2015 Naohisa Goto <[email protected]>
* test/socket/test_socket.rb (test/socket/test_socket.rb): skip
the test when Socket::SO_TIMESTAMP is not defined. Fix error
on Solaris 10. [Bug #11728] [ruby-dev:49377]
Sat Nov 21 18:57:28 2015 Nobuyoshi Nakada <[email protected]>
* ruby.c (need_argument): move frozen-string-literal-debug option
from --enable to --debug. [Feature #11725]
* ruby.c (proc_options): fix pointer overrun. do not advance argv
until it is valid.
Sat Nov 21 13:59:09 2015 NARUSE, Yui <[email protected]>
* ext/digest/sha1/extconf.rb: OpenSSL's struct name for SHA1 is
SHA_CTX. http://openssl.org/docs/man0.9.8/crypto/SHA1.html
Sat Nov 21 13:31:52 2015 NARUSE, Yui <[email protected]>
* ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid
including ext/digest/extconf.h. [Bug #3231]
https://msdn.microsoft.com/library/36k2cdd4.aspx
* ext/digest/*/extconf.rb: remove ext/digest from include search path
to avoid confusion of cl.exe.
* ext/digest/*/*.[ch]: explicitly specify def.h's path.
Sat Nov 21 13:05:16 2015 NARUSE, Yui <[email protected]>
* ext/openssl/ossl.h: LibreSSL doesn't have and need e_os2.h.
Sat Nov 21 09:18:10 2015 Koichi Sasada <[email protected]>
* thread_sync.c: reduce the specification of Queue#close.
* Queue#close accepts no arguments.
* deq'ing on closed queue returns nil, always.
[Feature #10600]
* test/thread/test_queue.rb: catch up this fix.
Sat Nov 21 08:44:21 2015 Koichi Sasada <[email protected]>
* compile.c (iseq_compile_each): add debug information to NODE_STR
strings as default.
[Feature #11725]
* insns.def (freezestring): add new instruction to support adding
debug information for dynamically constructed strings.
* compile.c (iseq_compile_each): support adding debug information
for NODE_DSTR with freezestring instruction.
* error.c (rb_error_frozen): change the debug information ID name
id_debug_created_info and this field should have a 2 element array
containing path and line information.
* defs/id.def: ditto.
* test/ruby/test_rubyoptions.rb: catch up this fix.
* test/ruby/test_iseq.rb: now frozen strings are not same.
Sat Nov 21 04:34:16 2015 Nobuyoshi Nakada <[email protected]>
* symbol.c (rb_str_intern): should not freeze the receiver itself
unexpectedly. [ruby-core:71611] [Bug #11721]
Fri Nov 20 23:15:18 2015 Naotoshi Seo <[email protected]>
* lib/logger.rb: expose logger mutex
[fix GH-541] Patch by @arthurnn
Fri Nov 20 15:05:28 2015 SHIBATA Hiroshi <[email protected]>
* Added missing reference of GitHub
Fri Nov 20 14:57:01 2015 Trevor Rowe <[email protected]>
* lib/net/http.rb: Fixed regression for Net::HTTP::PUT with "Expect-100"
header. [fix GH-949]
* test/net/http/test_http.rb: added test.
Fri Nov 20 14:39:56 2015 SHIBATA Hiroshi <[email protected]>
* lib/net/http.rb: set hostname before call ossl_ssl_set_session.
[Bug #11401][ruby-core:70152][fix GH-964] Patch by @mkarnebeek
Fri Nov 20 12:53:19 2015 SHIBATA Hiroshi <[email protected]>
* array.c: clarify docs for take_while/drop_while samples.
[ci skip][fix GH-1028] Patch by @leriksen
Fri Nov 20 12:48:04 2015 SHIBATA Hiroshi <[email protected]>
* ext/socket/socket.c: remove mention of :UNIX in getaddrinfo().
It's typically not a support option.
[ci skip][fix GH-990] Patch by @eam
Fri Nov 20 12:44:06 2015 SHIBATA Hiroshi <[email protected]>
* lib/rss/syndication.rb: Add nodoc marker for #validate_sy_updatePeriod.
[ci skip][fix GH-1105] Patch by @davydovanton
Fri Nov 20 09:05:21 2015 Koichi Sasada <[email protected]>
* vm.c (rb_vm_cref_replace_with_duplicated_cref): added.
CREFs should not be shared by methods between `using'.
[Bug #11247]
* vm_insnhelper.c (vm_cref_replace_with_duplicated_cref): ditto.
* vm.c (vm_cref_dup): should copy refinements correctly.
* eval.c: use rb_vm_cref_replace_with_duplicated_cref().
* eval_intern.h: add a decl. of
rb_vm_cref_replace_with_duplicated_cref().
* vm_eval.c (eval_string_with_cref): do not need to pass
scope's CREF because VM can find out CREF from stack frames.
* test/ruby/test_refinement.rb: add a test.
Fri Nov 20 06:52:53 2015 Eric Wong <[email protected]>
* .gitattributes: new file for git users
[ruby-core:71578] [Feature #11713]
Thu Nov 19 22:35:31 2015 Tanaka Akira <[email protected]>
* ext/socket/ancdata.c: Check buffer full and ignore MSG_TRUNC flag.
buffer fullness is more robust to detect the message is too big for
the buffer.
AIX 7.1 recvmsg doesn't set MSG_TRUNC for rflags when MSG_PEEK is
given.
Thu Nov 19 21:55:11 2015 Koichi Sasada <[email protected]>
* gc.c (gc_start): force to invoke GC by GC.start
even if it is GC.disable'd.
* test/ruby/test_gc.rb: add a test.
Thu Nov 19 20:08:59 2015 Koichi Sasada <[email protected]>
* gc.c: trivial performance improvements.
name modified
vm1_gc_short_lived* 1.015
vm1_gc_short_with_complex_long* 1.014
vm1_gc_short_with_long* 1.000
vm1_gc_short_with_symbol* 1.016
vm1_gc_wb_ary* 1.002
vm1_gc_wb_ary_promoted* 0.996
vm1_gc_wb_obj* 1.045
vm1_gc_wb_obj_promoted* 1.014
vm3_gc 1.021
* gc.c (gc_writebarrier_generational): reorder parameters to optimize
register passing function call.
* gc.c (gc_writebarrier_incremental): ditto.
* gc.c (rb_gc_writebarrier): remove LIKELY().
LIKELY() seems to move related functions not better places.
Thu Nov 19 19:45:05 2015 Nobuyoshi Nakada <[email protected]>
* ruby.c (ruby_prog_init): [DOC] ARGV does not contain the name of
the executable. [ruby-core:71561] [Bug #11711]
Thu Nov 19 15:53:21 2015 Koichi Sasada <[email protected]>
* signal.c: should also clear ruby_disable_gc.
[Bug #11692]
Thu Nov 19 15:31:45 2015 Koichi Sasada <[email protected]>
* compile.c (iseq_compile_each): T_IMEMO/iseq objects should be
wrap with ISeq wrappers. [Bug #11676]
Thu Nov 19 15:16:12 2015 SHIBATA Hiroshi <[email protected]>
* lib/rubygems: Update to RubyGems 2.5.0+ HEAD(c6b4946).
this version includes #1114, #1314, #1322, #1375, #1383, #1387
* test/rubygems: ditto.
Thu Nov 19 14:14:37 2015 NAKAMURA Usaku <[email protected]>
* win32/win32.c (finish_overlapped_socket): return value of this
function should be only 0 or SOCKET_ERROR.
Thu Nov 19 14:12:12 2015 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_tailcall_optimize): apply tail call optimization
before conversion to specialized instructions. when looking
back from `leave` instruction, `send` instructions have been
translated already.
Thu Nov 19 13:57:58 2015 NAKAMURA Usaku <[email protected]>
* win32/win32.c (finish_overlapped_socket): ignore EMSGSIZE when input,
because POSIX platforms just do so. fixes test errors revealed by
r52647.
Thu Nov 19 02:52:30 2015 NAKAMURA Usaku <[email protected]>
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
only when vmaxdatlen is nil.
Thu Nov 19 02:20:11 2015 Tanaka Akira <[email protected]>
* test/socket/test_socket.rb (test_udp_recvmsg_truncation): rflags is
nil on Solaris 10 which have no HAVE_STRUCT_MSGHDR_MSG_CONTROL.
Reported by Naohisa Goto. [ruby-core:71557] [Bug #11709]
Thu Nov 19 01:48:05 2015 NAKAMURA Usaku <[email protected]>
* configure.in: add -static-libgcc for mingw automatically if available.
Thu Nov 19 00:53:26 2015 NAKAMURA Usaku <[email protected]>
* ext/extmk.rb (--extflags): new option to pass EXTLDFLAGS to children,
especially exts.mk.
* common.mk (EXTMK_ARGS): use above option.
Wed Nov 18 22:50:43 2015 Koichi Sasada <[email protected]>
* vm_method.c (rb_class_clear_method_cache): should clear all
RCLASS_CALLABLE_M_TBLs of all sub-classes (T_ICLASS).
RCLASS_CALLABLE_M_TBL() caches complemented method entries.
It should be cleared when the modules are cleared.
On previous version clears only for direct children.
It is enough for normal modules because corresponding T_ICLASSes
are direct children.
However, refinements create complex data structure. So that
we need to clear all children (and descendants).
[ruby-core:71423] [Bug #11672]
* vm_method.c (rb_clear_method_cache_by_class): rb_mKernel
doesn't call rb_class_clear_method_cache, so that
clear child T_ICLASSes.
* test/ruby/test_refinement.rb: enable disabled test.
Wed Nov 18 21:09:08 2015 Koichi Sasada <[email protected]>
* vm_method.c (prepare_callable_method_entry): use
RCLASS_CALLABLE_M_TBL() instead of accessing a filed directly.
Wed Nov 18 17:08:18 2015 Koichi Sasada <[email protected]>
* method.h: introduce the following field and macros.
* rb_method_definition_t::complemented_count to count shared method
entries because of complemented method entries and separate from
alias_count.
Shared `def' only by complemented method entries should not prevent
method re-definition warning.
* METHOD_ENTRY_COMPLEMENTED(me) to represent complemented method entry.
* METHOD_ENTRY_COMPLEMENTED_SET(me) to check it as complemented me.
* vm_insnhelper.c (aliased_callable_method_entry): should also
check me->def->complemented_count.
* vm_method.c (method_definition_addref_complement): add to count
complemented method entries number.
* vm_method.c (rb_method_definition_release): release `def' iff
alias_count == 0 and complemented_count == 0.
* test/ruby/test_module.rb: add a test.
Wed Nov 18 17:06:19 2015 Koichi Sasada <[email protected]>
* gc.c (rb_raw_obj_info): fix trivial issues.
* support SPECIAL_CONSTs.
* fix IMEMO/ment outputs.
Wed Nov 18 11:32:15 2015 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_peephole_optimize): eliminate always/never
branches after a literal object. this sequence typically
appears by defined? operator for a method call on a local
variable.
Wed Nov 18 10:33:06 2015 NAKAMURA Usaku <[email protected]>
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
when EMSGSIZE occurs on non HAVE_STRUCT_MSGHDR_MSG_CONTROL platforms
(such as, Windows). fixes a test error revealed by r52625.
Wed Nov 18 10:12:36 2015 Eric Wong <[email protected]>
* ext/socket/ancdata.c (bsock_recvmsg_internal): use 4096 as
default size to match pre-r52610, which also maps to a common
page size.
Wed Nov 18 10:05:25 2015 Shugo Maeda <[email protected]>
* doc/syntax/refinements.rdoc: update documentation to reflect
recent changes.
[ci skip] [ruby-core:71466] [Misc #11681] Patch by James Adam
Wed Nov 18 09:50:21 2015 Naotoshi Seo <[email protected]>
* test/logger/test_logdevice.rb: Fix tests of logger to make it work on
windows (windows can not remove opened file) [Bug #11702]
Wed Nov 18 06:59:52 2015 Eric Wong <[email protected]>
* ext/socket/ancdata.c (bsock_recvmsg_internal): grow buffer
on unspecified maxdatlen
[ruby-core:71517] [Bug #11701]
* ext/socket/lib/socket.rb (Socket#recvmsg): nil default for dlen
(Socket#recvmsg_nonblock): ditto
* test/socket/test_socket.rb (test_recvmsg_udp_no_arg): new test
Tue Nov 17 19:50:06 2015 NAKAMURA Usaku <[email protected]>
* win32/win32.c (fstat): declare for mingw.
Tue Nov 17 19:02:59 2015 NAKAMURA Usaku <[email protected]>
* configure.in (BASERUBY): use Kernel#print instead of Kernel#p because
the baseruby may output CRLF as end of line.
Tue Nov 17 15:34:34 2015 Martin Duerst <[email protected]>
* NEWS: Added update from Unicode 7.0.0 to 8.0.0 [ci skip]
Tue Nov 17 15:30:30 2015 Martin Duerst <[email protected]>
* enc/unicode/casefold.h, name2ctype.h: Change Unicode
Version for regular expressions from 7.0.0 to
8.0.0 (with help from Kimihito Matsui) [Feature #11563]
Tue Nov 17 14:36:00 2015 Kenichi Kamiya <[email protected]>
* lib/ostruct.rb (dig): Implement OpenStruct#dig
[Feature #11688]
Tue Nov 17 14:04:14 2015 NAKAMURA Usaku <[email protected]>
* ext/socket/lib/socket.rb (Socket#recvmsg{,_nonblock}): default values
of clen must be nil.
* ext/socket/ancdata.c (bsock_sendmsg_internal): handle nil of clen.
fixes test errors introduced at r52602.
Tue Nov 17 13:43:46 2015 NAKAMURA Usaku <[email protected]>
* ext/socket/lib/socket.rb: UNIXSocket is not always exists. fixes
install error on Windows, introduced at r52601.
Tue Nov 17 11:27:23 2015 Eric Wong <[email protected]>
* ext/socket/lib/socket.rb (Socket#recvfrom_nonblock):
UDPSocket#recvfrom_nonblock):
update doc for `exception: false` and destination buffer
[ruby-core:69542] [Feature #11229]
[ruby-core:69543] [Feature #11242]
Tue Nov 17 11:25:05 2015 Eric Turner <[email protected]>
* array.c (rb_ary_dig), hash.c (rb_hash_dig): [DOC] Update
comments describing dig methods. [Fix GH-1103]
* struct.c (rb_struct_dig): [DOC] add rdoc.
Tue Nov 17 11:22:22 2015 Martin Duerst <[email protected]>
* NEWS: Small grammatical fix [ci skip]
Tue Nov 17 10:12:30 2015 Eric Wong <[email protected]>
* ext/socket/lib/socket.rb (Socket.accept_loop): avoid exceptions
(Socket.udp_server_recv): ditto
Tue Nov 17 09:59:00 2015 Eric Wong <[email protected]>
* ext/socket/ancdata.c (bsock_sendmsg_internal): avoid arg parsing
[ruby-core:71439] [Feature #11339]
(rsock_bsock_sendmsg): make private, adjust for above
(rsock_bsock_sendmsg_nonblock): ditto
* ext/socket/rubysocket.h: adjust prototypes
(rsock_opt_false_p): remove
* ext/socket/basicsocket.c (rsock_init_basicsocket):
define private methods
* ext/socket/lib/socket.rb (BasicSocket#sendmsg): new wrapper
(BasicSocket#sendmsg_nonblock): ditto
Tue Nov 17 09:45:18 2015 Eric Wong <[email protected]>
* ext/socket/ancdata.c (bsock_recvmsg_internal): avoid arg parsing
(rsock_bsock_recvmsg): adjust for above change
(rsock_bsock_recvmsg_nonblock): ditto
[ruby-core:71439] [Feature #11339]
* ext/socket/rubysocket.h: adjust prototypes for above
* ext/socket/basicsocket.c (rsock_init_basicsocket):
adjust private methods
* ext/socket/lib/socket.rb (BasicSocket#recvmsg): wrapper method
(BasicSocket#recvmsg_nonblock): ditto
Tue Nov 17 08:36:34 2015 Eric Wong <[email protected]>
* ext/socket/init.c (rsock_s_accept_nonblock): avoid parsing args
[ruby-core:71439] [Feature #11339]
* ext/socket/rubysocket.h: adjust prototype
* ext/socket/socket.c (sock_accept_nonblock): make private
* ext/socket/tcpserver.c (tcp_accept_nonblock): ditto
* ext/socket/unixserver.c (unix_accept_nonblock): ditto
* ext/socket/lib/socket.rb (Socket#accept_nonblock):
implement as wrapper, move RDoc
(TCPServer#accept_nonblock): ditto
(UNIXServer#accept_nonblock): ditto
Tue Nov 17 08:25:57 2015 Eric Wong <[email protected]>
* ext/socket/socket.c (sock_connect_nonblock):
avoid argument parsing in C.
[ruby-core:71439] [Feature #11339]
* ext/socket/lib/socket.rb (Socket#connect_nonblock):
new wrapper for private method, move RDoc
Tue Nov 17 08:16:09 2015 Eric Wong <[email protected]>
* ext/socket/init.c (rsock_s_recvfrom_nonblock):
avoid arg parsing with C API
[ruby-core:71439] [Feature #11339]
* ext/socket/basicsocket.c (bsock_recv_nonblock):
adjust for above change, make private
* ext/socket/socket.c (sock_recvfrom_nonblock): ditto
* ext/socket/udpsocket.c (udp_recvfrom_nonblock): ditto
* ext/socket/lib/socket.rb (BasicSocket#recv_nonblock):
new wrapper for private method, move RDoc
(Socket#recvfrom_nonblock): ditto
(UDPSocket#recvfrom_nonblock): ditto
Mon Nov 16 21:27:54 2015 Naohisa Goto <[email protected]>
* test/dtrace/helper.rb (Dtrace::TestCase#trap_probe): dtrace buffer
size is set as 8m on Solaris (default 4m). [Bug #11697]
Mon Nov 16 20:03:14 2015 Naotoshi Seo <[email protected]>
* lib/logger.rb: Add Logger#reopen
Mon Nov 16 18:21:52 2015 Nobuyoshi Nakada <[email protected]>
* object.c (rb_obj_dig): dig in nested structs too.
* struct.c (rb_struct_dig): new method Struct#dig.
[Feature #11688]
Mon Nov 16 17:41:33 2015 Nobuyoshi Nakada <[email protected]>
* compile.c (iseq_peephole_optimize): optimize tail calls on aref
and aset specialized instructions.
* compile.c (iseq_peephole_optimize): optimize replaced leave
instruction copied to jump instruction too.
Mon Nov 16 16:39:38 2015 Akinori MUSHA <[email protected]>
* lib/set.rb: Enable frozen_string_literal.
* lib/set.rb: Move << out of the begin block that ensures pop.
Mon Nov 16 16:28:30 2015 Akinori MUSHA <[email protected]>
* lib/set.rb (Hash#flatten!, #add?, #delete?, #collect!, #reject!,
#select!, #^, #classify): Micro-optimize some methods for
performance and readability.
Mon Nov 16 16:17:58 2015 SHIBATA Hiroshi <[email protected]>
* ChangeLog: fixed accidentally commit.