/
ChangeLog
9744 lines (6094 loc) · 320 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
Wed Nov 11 18:30:28 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* sprintf.c (rb_str_format): look up the key, then get default
value and raise KeyError if the returned value is nil.
[ruby-dev:49338] [Ruby trunk - Bug #11677]
Wed Nov 11 17:38:24 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_eval.c (local_var_list_add): skip internal local variable
name by its type but not if it has a name. internal local
variable names are just unique per frame, not globally.
[ruby-core:71437] [Bug #11674]
Wed Nov 11 14:14:33 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* transcode.c: fix a typo
[ci skip][fix GH-1091] Patch by @jwworth
Wed Nov 11 11:58:38 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (initialize): Connections are in passive mode per
default now. The default mode can be changed by
Net::FTP.default_passive=.
[ruby-core:71146] [Feature #11612]
* lib/net/ftp.rb (default_passive=, default_passive): new methods.
Wed Nov 11 09:03:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* sprintf.c (rb_str_format): respect default value of a hash. no
longer raises KeyError unless the default value of the hash is
nil. [ruby-core:71354] [Bug #11661]
Tue Nov 10 20:35:12 2015 Tanaka Akira <akr@fsij.org>
* lib/open-uri.rb: Remove indicator for "frozen_string_literal: true".
* lib/pp.rb: Ditto.
* lib/prettyprint.rb: Ditto.
* lib/resolv.rb: Ditto.
* lib/securerandom.rb: Ditto.
* lib/tmpdir.rb: Ditto.
* lib/unicode_normalize/tables.rb: Ditto.
* test/net/ftp/test_buffered_socket.rb: Ditto.
* test/net/ftp/test_mlsx_entry.rb: Ditto.
* test/open-uri/test_open-uri.rb: Ditto.
* test/open-uri/test_ssl.rb: Ditto.
* test/pathname/test_pathname.rb: Ditto.
* test/test_pp.rb: Ditto.
* test/test_prettyprint.rb: Ditto.
* tool/transcode-tblgen.rb: Ditto.
* ext/pathname/lib/pathname.rb: Ditto.
Tue Nov 10 18:42:24 2015 Aleksandrs Ledovskis <aleksandrs@ledovskis.lv>
* defs/id.def, parse.y: Switch internal token name to reflect
current form of safe-call operator. [Fix GH-1090]
Tue Nov 10 18:25:56 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (rb_hash_to_proc): use rb_func_proc_new to make light
weight proc. [Feature #11653]
Tue Nov 10 18:23:35 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* proc.c (cfunc_proc_t): add room for me.
* proc.c (cfunc_proc_new): generalise for cfunc proc without env.
* proc.c (rb_func_proc_new, rb_func_lambda_new): new functions to
make proc/lambda without env from cfunc.
Tue Nov 10 17:32:35 2015 Naohisa Goto <ngotogenome@gmail.com>
* bootstraptest/test_fork.rb ([ruby-dev:37934]): :NPROC (RLIMIT_NPROC)
is not supported on some platforms (e.g. Solaris 10).
Tue Nov 10 16:57:14 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (rb_hash_to_proc): new method Hash#to_proc.
[Feature #11653]
Tue Nov 10 14:34:09 2015 NARUSE, Yui <naruse@ruby-lang.org>
* time.c (rb_time_timespec_new): swap utc and localtime
to generate gmt flag by INT_MAX - gmtoff.
Tue Nov 10 14:01:59 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (rb_hash_{le,lt,ge,gt}): new methods, Hash#<=, Hash#<,
Hash#>=, Hash#>, to test if all elements of a hash are also
included in another hash, and vice versa.
[ruby-core:68561] [Feature #10984]
Tue Nov 10 11:25:29 2015 NARUSE, Yui <naruse@ruby-lang.org>
* time.c (rb_timespec_now): added.
* time.c (rb_time_timespec_new): added.
Tue Nov 10 06:17:17 2015 Eric Wong <e@80x24.org>
* variable.c (rb_autoload_load): allow recursive calls
[ruby-core:71345] [Bug #11658]
* test/ruby/test_autoload.rb (test_autoload_while_autoloading):
new test by: Hiroshi Shirosaki <h.shirosaki@gmail.com>
[ruby-core:71390]
Tue Nov 10 00:36:46 2015 Tanaka Akira <akr@fsij.org>
* lib/resolv.rb (Resolv::DNS::Message::MessageEncoder#put_labels):
Prevent overflow of pointer to labels.
Patch by Hannes Georg. [ruby-core:71248] [Bug #11632]
Tue Nov 10 00:25:41 2015 Kazuki Tsujimoto <kazuki@callcc.net>
* gems/bundled_gems: update to power_assert 0.2.6.
Mon Nov 9 21:48:17 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_eval.c (rb_check_funcall_default): split from
rb_check_funcall to return the given fallback value.
* object.c (rb_obj_dig): use rb_check_funcall_default so that tail
call optimization will be possible. [Feature #11643]
Mon Nov 9 21:27:23 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_dig): new method Array#dig.
* hash.c (rb_hash_dig): new method Hash#dig.
* object.c (rb_obj_dig): dig in nested arrays/hashes.
[Feature #11643]
Mon Nov 9 18:00:47 2015 Yuki Nishijima <mail@yukinishijima.net>
* gems/bundled_gems: Upgrade the did_you_mean gem to 1.0.0.beta3
Mon Nov 9 17:38:14 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* test/runner.rb: use official repository for coverage tool.
* Makefile.in: ditto.
* common.mk: ditto.
* .gitignore: ignored third party repositories.
Mon Nov 9 17:29:09 2015 Shugo Maeda <shugo@ruby-lang.org>
* compile.c (iseq_compile_each): Dynamic string literals should be
frozen.
[ruby-core:57574] [Feature #8976]
Mon Nov 9 15:56:07 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* common.mk: Use ruby organization url for simplecov repository.
Sun Nov 8 16:24:09 2015 Masaki Matsushita <glass.saga@gmail.com>
* NEWS: describe addition of File::TMPFILE
Sun Nov 8 15:19:17 2015 Masaki Matsushita <glass.saga@gmail.com>
* file.c: Add O_TMPFILE.
Sun Nov 8 14:24:43 2015 windwiny <windwiny.ubt@gmail.com>
* method.h (METHOD_ENTRY_{VISI,BASIC,FLAGS}_SET): suppress
shift-op-parentheses warnings. [Fix GH-1082]
Sun Nov 8 14:01:22 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* ext/psych/psych_emitter.c: backport 5bd7744 from tenderlove/psych.
support backward compatibility of Ruby 2.0
Sun Nov 8 10:55:10 2015 Anton Davydov <antondavydov.o@gmail.com>
* io.c (rb_io_gets_m): Update IO#gets doc for characters more than
1 byte. [Fix GH-1085]
Sun Nov 8 10:37:58 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* lib/uri/ftp.rb: fix a typo.
[fix GH-1084][ci skip] Patch by @windwiny
Sun Nov 8 08:10:31 2015 Koichi Sasada <ko1@atdot.net>
* vm_trace.c (exec_hooks_precheck): check need_clean everytime
to clean-up unused hooks.
* vm_trace.c (list->need_clean): use as boolean value.
Sun Nov 8 01:31:27 2015 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb (Net::HTTP#initialize):
default value of Net::HTTP#open_timeout is now 60 (was nil).
Sat Nov 7 12:18:05 2015 Eric Wong <e@80x24.org>
* string.c (id_to_s): remove redundant variable
(rb_obj_as_string): trade id_to_s for idTo_s
(rb_str_equal): replace rb_intern(...) with pre-defined ID
(rb_str_cmp_m): ditto
(rb_str_match): ditto
(str_upto_each): ditto
(rb_str_sum): ditto
(Init_String): remove id_to_s initialization
Sat Nov 7 11:40:05 2015 Eric Wong <e@80x24.org>
* thread.c (rb_cThreadShield): make static
Sat Nov 7 09:51:38 2015 Koichi Sasada <ko1@atdot.net>
* vm_trace.c (rb_threadptr_exec_event_hooks_orig):
maintain trace_running counter on internal events.
This patch is made by Takashi Kokubun <takashikkbn@gmail.com>.
[Bug #11603] https://github.com/ruby/ruby/pull/1059
Sat Nov 7 03:32:27 2015 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h (RSTRUCT_PTR): need a close parenthesis.
Sat Nov 7 01:32:06 2015 Naohisa Goto <ngotogenome@gmail.com>
* dir.c (dir_fileno, dirfd): support of Dir#fileno on Solaris 10.
Solaris 10 does not have dirfd, but the file descriptor of a
directory is stored in the d_fd or dd_fd member in the DIR struct.
Note that Solaris 11 has dirfd(3C).
* configure.in: checks for DIR.d_fd and DIR.dd_fd on Solaris 10.
Fri Nov 6 23:13:53 2015 Kazuki Tanaka <gogotanaka@ruby-lang.org>
* array.c: clarifies Array#reject! documentation.
[fix GH-894][ci skip] Patch by @GxSplinter
Fri Nov 6 20:18:25 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* test/runner.rb: extracted test helper.
* test/lib/zombie_hunter.rb: ditto.
Fri Nov 6 18:07:47 2015 Naohisa Goto <ngotogenome@gmail.com>
* include/ruby/ruby.h (rb_array_const_ptr, rb_struct_const_ptr):
Suppress pointer type mismatch warnings occurred with old version
of Fujitsu C Compiler (fcc) on Solaris 10. The warnings cause
failure of TestMkmf::TestConvertible. [Bug #11644] [ruby-dev:49326]
* include/ruby/ruby.h (FIX_CONST_VALUE_PTR): macro for the above,
only effective with fcc.
Fri Nov 6 12:39:21 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* defs/id.def (token_ops), parse.y (parser_yylex): change DOTQ
from ".?" to "&.". [ruby-core:71363] [Feature #11537]
Fri Nov 6 09:01:26 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (kwd_append): fix segv after invalid keyword argument,
preceding keyword list is NULL when syntax error is there.
[ruby-core:71356] [Bug #11663]
Fri Nov 6 06:59:37 2015 Eric Wong <e@80x24.org>
* test/ruby/test_autoload: hoist out ruby_impl_require
Thu Nov 5 13:03:58 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* defs/id.def (token_ops): gather associations between IDs,
operators, and parser tokens.
Thu Nov 5 10:17:17 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/socket/socket.c (make_addrinfo): use RARRAY_ASET for
write-barrier.
* ext/tk/tcltklib.c ({call,eval,invoke}_queue_handler): ditto.
* ext/tk/tkutil/tkutil.c (ary2list, ary2list2): ditto.
Thu Nov 5 10:09:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/**/*.c: prefer RARRAY_AREF to indexing RARRAY_CONST_PTR.
pointed out by hanmac.
https://github.com/ruby/ruby/commit/3553a86#commitcomment-14187670
Wed Nov 4 17:33:24 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* lib/debug.rb: Add documentation for #thread_list_all.
[Misc #11580][ci skip]
Wed Nov 4 15:45:59 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* class.c: fix documentation for rb_define_class{_id}_under.
[fix GH-991][ci skip] Patch by @kachick
Wed Nov 4 15:40:45 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* method.h: fix typo. Patch by @davydovanton
[fix GH-1076][ci skip]
Wed Nov 4 15:39:32 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* hash.c: use correct grammer. Patch by @tveastman
[fix GH-1079][ci skip]
Wed Nov 4 11:38:23 2015 Jake Worth <jakeworth82@gmail.com>
* process.c (proc_getsid): [DOC] Fix double word 'for' and typo.
[Fix GH-1080]
Wed Nov 4 06:01:52 2015 Eric Wong <e@80x24.org>
* include/ruby/ruby.h (struct RObject): hide iv_index_tbl type
[ruby-core:71306] [Feature #11647]
Tue Nov 3 06:48:58 2015 Eric Wong <e@80x24.org>
* variable.c (find_class_path): remove cast for rb_class_ivar_set
(rb_ivar_set): ditto
(rb_cvar_set): ditto
Tue Nov 3 06:18:21 2015 Eric Wong <e@80x24.org>
* variable.c (rb_global_tbl): convert to id_table
Tue Nov 3 01:58:46 2015 Naohisa Goto <ngotogenome@gmail.com>
* parse.y (NO_QCALL): fix type mismatch of operands that causes
compile error with Oracle Solaris Studio on Solaris.
[Bug #11645] [ruby-dev:49327]
Sun Nov 1 17:14:36 2015 Koichi Sasada <ko1@atdot.net>
* id_table.c (mix_id_table_insert): do not touch list during
list->hash transition because GC can run during transition.
Sun Nov 1 11:07:31 2015 Eric Wong <e@80x24.org>
* iseq.c (iseq_memsize): account for rb_call_cache entries
Sun Nov 1 09:12:10 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_yylex): ':' separated by a comment and a newline
is not valid as symbol.
Sat Oct 31 20:15:48 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* test/openssl/test_pair.rb: skipped tests if openssl doesn't support
ECDH cipher.
Sat Oct 31 14:58:10 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* man/ruby.1 (SYNOPSIS): remove extraneous space for -F option as
it does not allow spaces before its argument.
[ruby-core:71283] [Bug #11641]
Sat Oct 31 14:58:01 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* man/ruby.1 (SYNOPSIS): remove extraneous space for -F option as
it does not allow spaces before its argument.
[ruby-core:71283] [Bug #11641]
Sat Oct 31 10:22:49 2015 yui-knk <spiketeika@gmail.com>
* eval_error.c (undef_mesg_for): fix typo. Before this commit
`ArgumentError: malformed format string - %$` was raised when
`NameError#message` is called. [ruby-core:71282] [Bug #11640]
[Fix GH-1077]
Fri Oct 30 21:12:45 2015 Kazuki Tsujimoto <kazuki@callcc.net>
* gems/bundled_gems: update to power_assert 0.2.5.
Fri Oct 30 19:29:52 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (newobj_slowpath): do not need to use flags hack (commit miss).
Fri Oct 30 19:08:48 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.
Fri Oct 30 18:09:51 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (newobj_slowpath): reduce 1 parameter to use only registers
for performance.
On my laptop, 'N.times{x = []}' (where N = 29_000_000) is
1.86 sec -> 1.74 sec.
Fri Oct 30 12:53:21 2015 yui-knk <spiketeika@gmail.com>
* test/ruby/test_call.rb: added test for safe navigation operator.
[fix GH-1066]
Fri Oct 30 12:47:34 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* ChangeLog: fix wrong commit name.
Fri Oct 30 12:36:16 2015 yui-knk <spiketeika@gmail.com>
* vm_method.c: added documentation of protected/private methods.
[fix GH-1072]
* test/ruby/test_module.rb: added testcase for method_defined?
[fix GH-1071]
Fri Oct 30 12:06:59 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* variable.c (rb_class_ivar_set): rename as class specific ivar
setter, and st_table is no longer involved.
Fri Oct 30 11:36:33 2015 Eric Wong <e@80x24.org>
* variable.c (generic_ivar_remove): adjust type, set valp
(rb_obj_remove_instance_variable): simplify call
* test/ruby/test_object.rb (test_remove_instance_variable):
expand for implementation details
Fri Oct 30 10:37:56 2015 Eric Wong <e@80x24.org>
* internal.h (rb_st_insert_id_and_value): update prototype
* variable.c (rb_st_insert_id_and_value): reduce args
(find_class_path): adjust call for less args
(rb_ivar_set): ditto
(rb_cvar_set): ditto
* class.c (rb_singleton_class_attached): ditto
Fri Oct 30 09:57:22 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* gems/bundled_gems: update latest gems.
test-unit-3.1.5 and minitest-5.8.2
Fri Oct 30 09:54:05 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* lib/rubygems: Update to RubyGems HEAD(60d7972).
this version contains pull requests number of #1343, #1356, #1357, #1363
at https://github.com/rubygems/rubygems/pulls
* test/rubygems: ditto.
Fri Oct 30 07:38:29 2015 Koichi Sasada <ko1@atdot.net>
* insns.def (getinlinecache/setinlinecache): compare ic->ic_cref and
current cref only when cached CREF list includes singleton class.
Singleton classes have own namespaces, so that we need to check
cref as a key (#10943).
However, if current CREF list does not include singleton class,
no need to check CREF because it should be same name space.
* vm_insnhelper.c (vm_get_const_key_cref): add a function returns
CREF only when it includes singleton class.
* vm_core.h: constify iseq_inline_cache_entry::ic_cref.
Fri Oct 30 06:43:50 2015 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (vm_env_cref): make it inline for performance.
* vm_insnhelper.c (rb_vm_get_cref): use NULL instead of 0.
Fri Oct 30 06:20:40 2015 Koichi Sasada <ko1@atdot.net>
* insns.def: nobody set ic->ic_value.value to Qundef.
Fri Oct 30 06:15:50 2015 Koichi Sasada <ko1@atdot.net>
* vm.c: add ifndef guard for VM_CHECK_MODE.
Fri Oct 30 06:13:10 2015 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (vm_check_frame_detail): should require me for
VM_FRAME_FLAG_BMETHOD type frame.
Thu Oct 29 18:42:30 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_mark_ptr): specify NOINLINE so that gc_mark() can return
immediately when obj is not a markable object.
Thu Oct 29 18:05:22 2015 Koichi Sasada <ko1@atdot.net>
* encoding.c (rb_enc_check_str): add for performance.
This function only accepts T_STRING (and T_REGEXP).
This patch improves performance of a tiny_segmenter benchmark
(num=2) 2.54sec -> 2.42sec on my machine.
https://github.com/chezou/TinySegmenter.jl/blob/master/benchmark/benchmark.rb
* encoding.c: add ENC_DEBUG and ENC_ASSERT() macros.
* internal.h: add a decl. of rb_enc_check_str().
* string.c (rb_str_plus): use rb_enc_check_str().
* string.c (rb_str_subpat_set): ditto.
Thu Oct 29 17:16:40 2015 Koichi Sasada <ko1@atdot.net>
* internal.h: export rb_wb_(un)protected_newobj_of()
because some extensions include internal.h.
Thu Oct 29 16:42:19 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (rb_imemo_new): should not pass FL_WB_PROTECTED flag.
* gc.c (rb_wb_protected_newobj_of): add more assertions.
* gc.c (rb_wb_unprotected_newobj_of): ditto.
Thu Oct 29 16:20:26 2015 Koichi Sasada <ko1@atdot.net>
* gc.c: introduce rb_wb_unprotected_newobj_of() and
rb_wb_protected_newobj_of(), pass the WB_PROTECTED
information explicitly.
* internal.h: use introduced functions by NEWOBJ_OF().
`flag' is immediate value, so that C compilers can
solve them at compile time.
* include/ruby/ruby.h: add a comment about that.
Thu Oct 29 14:52:03 2015 Koichi Sasada <ko1@atdot.net>
* gc.c: add rb_objspace::flags::has_hook to represent hook availability.
* gc.c: add gc_event_hook_available_p(objspace) to check that flag.
* gc.c (newobj_of): use gc_event_hook_available_p() instead of
checking gc_event_hook_needed_p(objspace, RUBY_INTERNAL_EVENT_NEWOBJ).
for performance.
* gc.c (newobj_init): add UNLIKELY() for FL_WB_PROTECTED flag.
* gc.c (newobj_init): change parameters order (trivial change).
Thu Oct 29 14:45:15 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_core.h (rb_thread_struct): move forward declarations before
used.
Thu Oct 29 14:07:54 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_mark_ptr): remove debug code for #11244.
Thu Oct 29 10:08:33 2015 Eric Wong <e@80x24.org>
* variable.c (struct autoload_state): usable as wait-queue head
(struct autoload_data_i): remove 2 words of overhead
(autoload_i_mark): remove marking for thread
(autoload_reset): adjust for struct changes
(rb_autoload): ditto
(rb_autoloading_value): ditto
(rb_autoload_load): ditto
(const_update): ditto
Thu Oct 29 08:48:05 2015 Eric Wong <e@80x24.org>
* variable.c (struct autoload_data_i): add waitq_head
(struct autoload_state): new struct
(autoload_require): save result in autoload_state for use
in autoload_reset
(autoload_reset): wake up other waiters with open-coded
wait-queues
(rb_autoload_load): add ensure autoload_const_set happens
atomically w.r.t. autoload-triggered "require"
[ruby-core:70075] [ruby-core:71239] [Bug #11384]
Wed Oct 29 00:39:50 2015 Naohisa Goto <ngotogenome@gmail.com>
* test/rubygems/test_gem_commands_server_command.rb
(test_handle_options_port): change port from http to discard.
Solaris does not include "http 80/tcp" in its default
/etc/inet/services. AFAIK, discard (9/tcp) is older than http
and it is expected that all OS can resolve the service name.
[Bug #10004] [ruby-core:63518]
Wed Oct 28 23:52:48 2015 Naohisa Goto <ngotogenome@gmail.com>
* probes_helper.h (RUBY_DTRACE_HOOK): add RB_GC_GUARD, though paranoic.
Wed Oct 28 15:36:11 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_name_err_new): store the receiver directly.
* error.c (name_err_receiver): return directly stored receiver.
[Feature #10881]
* error.c (name_err_mesg_to_str): quote the name if unprintable.
* object.c (check_setter_id): use rb_check_id to convert names.
* variable.c (uninitialized_constant): use NameError::message to
keep the receiver of uninitialized constant. [Feature #10881]
* error.c (rb_name_err_new): new function to create NameError
exception instance. [Feature #10881]
Wed Oct 28 13:29:39 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (new_attr_op_assign): fix op_assign type, which is
already an ID since r52284. [Feature #11537]
Tue Oct 27 23:14:14 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* defs/id.def: enable anonymous IDs not to expose internal IDs for
frozen-string-literal-debug by Marshal.dump.
Tue Oct 27 17:06:55 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* defs/id.def: move internal IDs for frozen-string-literal-debug.
Tue Oct 27 16:41:05 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_error_frozen_object): use rb_attr_get instead of
rb_ivar_get to get rid of warnings for string objects created
when frozen-string-literal-debug is disabled.
Tue Oct 27 16:18:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/logger.rb (Logger::Period#previous_period_end): as weekly
rotation shifts the log file on Sundays, the end date of the
previous period should be Saturdays. fix r45072.
[ruby-dev:49314] [Bug #11622]
Tue Oct 27 16:12:37 2015 NARUSE, Yui <naruse@ruby-lang.org>
* vm_dump.c (rb_print_backtrace): our addr2line doesn't work on sparc.
http://rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20151027T043311Z.log.html.gz
Tue Oct 27 12:00:33 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/logger.rb (Logger::Period#next_rotate_time): get rid of
adding to mday not to exceed the days of the month.
[ruby-core:71185] [Bug #11620]
Mon Oct 26 22:43:03 2015 yui-knk <spiketeika@gmail.com>
* test/ruby/test_module.rb (test_method_defined): Add test cases
for `public/protected/private _method_defined?`
These methods accept string as argument, so add string argument
cases. [Fix GH-1067]
Mon Oct 26 22:23:30 2015 SimonDKnight <simondknight@hotmail.com>
* lib/racc/rdoc/grammar.en.rdoc: Grammatical errors fixed.
[Fix GH-1070]
Mon Oct 26 18:36:43 2015 Shota Fukumori (sora_h) <her@sorah.jp>
* vm_method.c(rb_method_entry_make):
[DOC] [ci skip] Remove a needless space from comment
[Fixes GH-1069] Patch by @yui-knk
Mon Oct 26 17:30:13 2015 Ryan Hosford <tad.hosford@gmail.com>
* lib/fileutils.rb: rename tailing to trailing.
[Misc #11548]
Mon Oct 26 17:11:53 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (call_op, call_op2): fix values on ripper. [Feature #11537]
Mon Oct 26 12:55:06 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (call_op2): separate from call_op and also allow "::",
while dot_or_colon should not allow ".?". [Feature #11537]
Mon Oct 26 01:03:23 2015 Rei Odaira <Rei.Odaira@gmail.com>
* thread_pthread.c: fix compile errors when
USE_SLEEPY_TIMER_THREAD is disabled.
Sun Oct 25 10:12:05 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* symbol.c (op_tbl): add DOTQ for ripper. [Feature #11537]
Sat Oct 24 22:51:18 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* configure.in: fixed build failure of Haiku.
[fix GH-984] Patch by @kallisti5
* ext/socket/getaddrinfo.c: ditto.
* ext/socket/getnameinfo.c: ditto.
* ext/socket/rubysocket.h: ditto.
Sat Oct 24 21:16:53 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/fileutils/test_fileutils.rb (test_uptodate): relax error
message format. [Feature #9025], [ruby-core:71178] [Bug #11617]
Sat Oct 24 21:06:43 2015 Shota Fukumori (sora_h) <her@sorah.jp>
* lib/mkmf.rb: Revert r45640 because it may lead to link
with different libruby. [Bug #9760]
Sat Oct 24 15:42:20 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bootstraptest/test_method.rb: relax error message format.
* test/ruby/test_arity.rb (err_mess): ditto.
[Feature #9025], [ruby-core:71178] [Bug #11617]
Sat Oct 24 12:47:47 2015 Martin Duerst <duerst@it.aoyama.ac.jp>
* vm_insnhelper.c: improved error message for "wrong number
of arguments", distinguishing given and expected argument
numbers clearly. [Feature #9025]
Sat Oct 24 11:57:59 2015 Shugo Maeda <shugo@ruby-lang.org>
* vm_insnhelper.c: remove the typedef redeclaration of
vm_call_handler.
Sat Oct 24 07:29:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/forwardable.rb (def_instance_delegator, def_single_delegator):
match backtraces against ::Forwardable in case the target class
is a subclass of BasicObject and does not include Kernel.
[ruby-core:71176] [Bug #11616]
Sat Oct 24 04:10:13 2015 Koichi Sasada <ko1@atdot.net>
* iseq.c (make_compile_option_value): include frozen_string_literal*
in a made option value.
* vm_opts.h: forgot to add OPT_FROZEN_STRING_LITERAL_DEBUG
at last commit.
Sat Oct 24 03:58:02 2015 Koichi Sasada <ko1@atdot.net>
* ruby.c: introduce --enable-frozen-string-literal-debug option.
If this option is enabled, the modify error will be:
can't modify frozen String (RuntimeError) =>
can't modify frozen String, created at test.rb:3 (RuntimeError)
* iseq.h: add compile option frozen_string_literal_debug.
* compile.c: catch up this fix.
* error.c (rb_error_frozen): ditto.
* iseq.c (set_compile_option_from_hash): ditto.
* test/ruby/test_rubyoptions.rb: add a test for this fix.
Sat Oct 24 02:02:24 2015 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c: introduce new call handler for simple ISeqs.
vm_call_iseq_setup_normal_0start() is simple, however it has
some loops/conditions depends on ISeq::param.size and
ISeq::local_size (in vm_push_frame(), inlined into this function).
There are many simple methods which has a few parameters and local
variables. So that this patch introduces several special functions
generated in vm_call_iseq_optimized.inc by
tool/mk_call_iseq_optimized.rb.
This script makes
vm_call_iseq_setup_normal_0start_Xparams_Ylocals()
where X is 0 to 3 and Y is 1 to 6 (as current setting).
In this case, X * Y = 24 functions are created.
These functions creates fast method dispatch by inlining
vm_push_frame() with immediate params/locals sizes.
On my laptop, we can have the following results.
vm2_method* 1.083 (8.3% faster)
vm2_poly_method* 0.961 (3.4% slower)
It shows 8.3% faster for inner loop method dispatch (hit inline
cache), but 3.4% slower when inline cache miss because we need
to find a suitable call handler.
* common.mk: add a rule for vm_call_iseq_optimized.inc.
* tool/mk_call_iseq_optimized.rb: added.
* vm.c: include vm_call_iseq_optimized.inc.
Sat Oct 24 01:58:50 2015 Koichi Sasada <ko1@atdot.net>
* vm_core.h: define vm_call_handler.
Sat Oct 24 01:56:01 2015 Koichi Sasada <ko1@atdot.net>
* vm_core.h, vm_insnhelper.h: move definition of VMDEBUG
from vm_insnhelper.h to vm_core.h.
Sat Oct 24 01:51:01 2015 Akinori MUSHA <knu@iDaemons.org>
* NEWS: [DOC] In the new safe call syntax, arguments are evaluated
only if a call is made.
* doc/syntax/calling_methods.rdoc: Fix a typo.
Sat Oct 24 00:38:34 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/forwardable (def_instance_delegator, def_single_delegator):
rescue ::Exception instead of Exception in case Exception is
defined under the target class.
[ruby-core:71175] [Ruby trunk - Bug #11615]
Fri Oct 23 21:10:37 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (name_err_mesg_to_str): separate class names from the
receiver description.
* vm_eval.c (make_no_method_exception, raise_method_missing): add
format specifiers for class names.
Fri Oct 23 18:10:32 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* .gitignore: ignored environmental wrapper files.
Fri Oct 23 17:55:29 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* lib/irb.rb: Ignored assignment of STDOUT.sync = true
when irb.rb loaded. It's affected to IDE such as Jetbrain.
[fix GH-864] Patch by @os97673
Fri Oct 23 16:35:08 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained
EOL string. Patch by @kachick [fix GH-942][Bug #11513]
Fri Oct 23 16:03:26 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* file.c: fix indent style. [fix GH-977]
* test/ruby/test_string.rb: indent. [fix GH-975]
[ci skip] These patches are contributed from @yui-knk
Fri Oct 23 15:46:09 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* string.c: Added method signature to include hash. It's inconsistency
with `gsub` method signature.
[ci skip][fix GH-1023] Patch by @danielevans
Fri Oct 23 15:25:51 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb: remove an empty comment line and -*-.
Fri Oct 23 15:20:02 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (gettextfile, getbinaryfile): use the safe
navigation operator.
Fri Oct 23 13:51:33 2015 yui-knk <spiketeika@gmail.com>
* test_call.rb (test_safe_call): Add test cases for safe
navigation operator assignment. [Fix GH-1064]
Validate:
* can assign an attribute which is `nil`
* can "or assign" an attribute which is `nil`
Fri Oct 23 11:58:21 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_peephole_optimize): optimize lengthy safe
navigation method chain. [Feature #11537]
Fri Oct 23 10:58:41 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/matrix/eigenvalue_decomposition.rb (tridiagonalize): fix
indentation to avoid a warning when the command line option -w of
ruby is specified.
* lib/matrix/eigenvalue_decomposition.rb (hessenberg_to_real_schur):
change the name of a block parameter to avoid a warning when the
command line option -w of ruby is specified.
Fri Oct 23 10:49:36 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_compile_each): support safe navigation of simple
attribute assignment. [Feature #11537]
* parse.y (mlhs_node, lhs, attrset_gen): ditto. keep mid
non-attrset as the sign of safe navigation.
Fri Oct 23 07:17:11 2015 Eric Wong <e@80x24.org>
* test/io/wait/test_io_wait.rb (test_wait_eof): test return value
Fri Oct 23 00:32:02 2015 NARUSE, Yui <naruse@ruby-lang.org>
* ext/openssl/ossl_ssl.c (ssl_npn_select_cb): explicitly raise error
in ext/openssl instead of OpenSSL itself because LibreSSL
silently truncate the selected protocol name by casting the length
from int to unsigned char. [Bug #11369]
Patch by Jeremy Evans <merch-redmine@jeremyevans.net>
Fri Oct 23 00:49:45 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/un.rb (help): change the name of a block parameter to avoid
a warning when the command line option -w of ruby is specified.
Fri Oct 23 00:22:20 2015 Josef Simanek <josef.simanek@gmail.com>
* string.c (rb_str_tr): [DOC] Escape backslash in String#tr
documentation. [Fix GH-1063]
Fri Oct 23 00:19:04 2015 yui-knk <spiketeika@gmail.com>
* array.c (rb_ary_collect): [DOC] Fix space of code example of
Array#map. [Fix GH-1062]
Thu Oct 22 18:52:53 2015 Akinori MUSHA <knu@iDaemons.org>
* vm_eval.c (rb_f_loop): When a loop is stopped by a StopIteration
exception, return what the enumerator has returned instead of
nil. [ruby-core:71133] [Feature #11498]
Thu Oct 22 18:25:10 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (idle): add a new argument timeout for keep-alive.
[ruby-core:63693] [Bug #10031]
Thu Oct 22 15:30:08 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_peephole_optimize): peephole optimization for
branchnil jumps.
* compile.c (iseq_compile_each): generate save navigation operator
code.
* insns.def (branchnil): new opcode to pop the tos and branch if
it is nil.
* parse.y (NEW_QCALL, call_op, parser_yylex): parse token '.?'.
[Feature #11537]
Thu Oct 22 13:16:19 2015 Guilherme Reis Campos <guilhermekbsa@gmail.com>
* dir.c (ruby_brace_expand): glob brace expansion edge case fix.
When there are closing braces '}' before a open brace '{' it
must be ignored and considered as literal.
[ruby-core:71138] [Bug #11609]
Thu Oct 22 13:13:49 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (argf_next_argv): check ARGV element type, and try
conversion if necessary. [ruby-core:71140] [Bug #11610]
Thu Oct 22 11:11:16 2015 Shugo Maeda <shugo@ruby-lang.org>
* test/net/ftp/test_ftp.rb: add tests for getbinaryfile and
gettextfile.
Wed Oct 21 18:34:06 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_magic_comment): allow a sole magic comment without
indicators, neither other non-space comments. [Feature #8976]
Tue Oct 20 12:17:56 2015 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/prime.rb: Add basic argument checking to Prime.prime?
[Bug #11606]
Tue Oct 20 12:17:50 2015 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/prime.rb: Optimize Integer#prime?
Patch by Nick Slocum [Bug #10354]
Tue Oct 20 08:12:47 2015 Rei Odaira <Rei.Odaira@gmail.com>
* configure.in: pthread_getattr_np is broken on AIX.
More specifically, the stack address and size returned are
not correct.
Tue Oct 20 05:54:46 2015 Eric Wong <e@80x24.org>
* ext/fiddle/closure.c (callback): static function
Mon Oct 19 10:33:46 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/socket/init.c (rsock_raise_socket_error): get rid of a glibc
bug. [ruby-core:71100] [Bug #11600]
Mon Oct 19 01:26:26 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* file.c (rb_file_identical_p): not necessary to compare the paths after
comparing the file indexes on Windows. designate by kosaki.
Sun Oct 18 21:17:27 2015 Tanaka Akira <akr@fsij.org>
* lib/open-uri.rb: Specify frozen_string_literal: true.