forked from ruby/ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChangeLog
9360 lines (5859 loc) · 308 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
Fri Oct 30 21:12:45 2015 Kazuki Tsujimoto <[email protected]>
* gems/bundled_gems: update to power_assert 0.2.5.
Fri Oct 30 19:29:52 2015 Koichi Sasada <[email protected]>
* gc.c (newobj_slowpath): do not need to use flags hack (commit miss).
Fri Oct 30 19:08:48 2015 Koichi Sasada <[email protected]>
* gc.c (heap_get_freeobj_from_next_freepage): not so UNLIKELY.
Fri Oct 30 18:09:51 2015 Koichi Sasada <[email protected]>
* 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 <[email protected]>
* test/ruby/test_call.rb: added test for safe navigation operator.
[fix GH-1066]
Fri Oct 30 12:47:34 2015 SHIBATA Hiroshi <[email protected]>
* ChangeLog: fix wrong commit name.
Fri Oct 30 12:36:16 2015 yui-knk <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* insns.def: nobody set ic->ic_value.value to Qundef.
Fri Oct 30 06:15:50 2015 Koichi Sasada <[email protected]>
* vm.c: add ifndef guard for VM_CHECK_MODE.
Fri Oct 30 06:13:10 2015 Koichi Sasada <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* internal.h: export rb_wb_(un)protected_newobj_of()
because some extensions include internal.h.
Thu Oct 29 16:42:19 2015 Koichi Sasada <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* vm_core.h (rb_thread_struct): move forward declarations before
used.
Thu Oct 29 14:07:54 2015 Koichi Sasada <[email protected]>
* gc.c (gc_mark_ptr): remove debug code for #11244.
Thu Oct 29 10:08:33 2015 Eric Wong <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* probes_helper.h (RUBY_DTRACE_HOOK): add RB_GC_GUARD, though paranoic.
Wed Oct 28 15:36:11 2015 Nobuyoshi Nakada <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* defs/id.def: move internal IDs for frozen-string-literal-debug.
Tue Oct 27 16:41:05 2015 Nobuyoshi Nakada <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* lib/racc/rdoc/grammar.en.rdoc: Grammatical errors fixed.
[Fix GH-1070]
Mon Oct 26 18:36:43 2015 Shota Fukumori (sora_h) <[email protected]>
* 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 <[email protected]>
* lib/fileutils.rb: rename tailing to trailing.
[Misc #11548]
Mon Oct 26 17:11:53 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (call_op, call_op2): fix values on ripper. [Feature #11537]
Mon Oct 26 12:55:06 2015 Nobuyoshi Nakada <[email protected]>
* 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 <[email protected]>
* thread_pthread.c: fix compile errors when
USE_SLEEPY_TIMER_THREAD is disabled.
Sun Oct 25 10:12:05 2015 Nobuyoshi Nakada <[email protected]>
* symbol.c (op_tbl): add DOTQ for ripper. [Feature #11537]
Sat Oct 24 22:51:18 2015 SHIBATA Hiroshi <[email protected]>
* 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 <[email protected]>
* 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) <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* vm_insnhelper.c: remove the typedef redeclaration of
vm_call_handler.
Sat Oct 24 07:29:12 2015 Nobuyoshi Nakada <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* vm_core.h: define vm_call_handler.
Sat Oct 24 01:56:01 2015 Koichi Sasada <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* .gitignore: ignored environmental wrapper files.
Fri Oct 23 17:55:29 2015 SHIBATA Hiroshi <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* lib/net/imap.rb: remove an empty comment line and -*-.
Fri Oct 23 15:20:02 2015 Shugo Maeda <[email protected]>
* lib/net/ftp.rb (gettextfile, getbinaryfile): use the safe
navigation operator.
Fri Oct 23 13:51:33 2015 yui-knk <[email protected]>
* 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 <[email protected]>
* compile.c (iseq_peephole_optimize): optimize lengthy safe
navigation method chain. [Feature #11537]
Fri Oct 23 10:58:41 2015 Shugo Maeda <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* test/io/wait/test_io_wait.rb (test_wait_eof): test return value
Fri Oct 23 00:32:02 2015 NARUSE, Yui <[email protected]>
* 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 <[email protected]>
Fri Oct 23 00:49:45 2015 Shugo Maeda <[email protected]>
* 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 <[email protected]>
* string.c (rb_str_tr): [DOC] Escape backslash in String#tr
documentation. [Fix GH-1063]
Fri Oct 23 00:19:04 2015 yui-knk <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* test/net/ftp/test_ftp.rb: add tests for getbinaryfile and
gettextfile.
Wed Oct 21 18:34:06 2015 Nobuyoshi Nakada <[email protected]>
* 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 <[email protected]>
* lib/prime.rb: Add basic argument checking to Prime.prime?
[Bug #11606]
Tue Oct 20 12:17:50 2015 Marc-Andre Lafortune <[email protected]>
* lib/prime.rb: Optimize Integer#prime?
Patch by Nick Slocum [Bug #10354]
Tue Oct 20 08:12:47 2015 Rei Odaira <[email protected]>
* 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 <[email protected]>
* ext/fiddle/closure.c (callback): static function
Mon Oct 19 10:33:46 2015 Nobuyoshi Nakada <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* lib/open-uri.rb: Specify frozen_string_literal: true.
Sun Oct 18 14:37:56 2015 KOSAKI Motohiro <[email protected]>
* random.c (fill_random_bytes_urandom): add a comment why using
O_NONBLOCK and O_NOCTTY.
Sun Oct 18 13:24:17 2015 KOSAKI Motohiro <[email protected]>
* random.c (fill_random_bytes_syscall): use ATOMIC_SET() for
updating try_syscall.
Sun Oct 18 13:03:52 2015 KOSAKI Motohiro <[email protected]>
* include/ruby/backward/util.h: Good-by Borland-C.
Sun Oct 18 13:03:09 2015 KOSAKI Motohiro <[email protected]>
* common.mk: add a comment how to use "make test-all"
Sun Oct 18 12:59:22 2015 KOSAKI Motohiro <[email protected]>
* common.mk: add comments how to use "make benchmark"
Sun Oct 18 12:58:15 2015 Tanaka Akira <[email protected]>
* lib/securerandom.rb: Specify frozen_string_literal: true.
Sun Oct 18 11:22:52 2015 KOSAKI Motohiro <[email protected]>
* dln.c: remove defined(__WATCOMC__).
Sun Oct 18 11:16:33 2015 KOSAKI Motohiro <[email protected]>
* lib/mkmf.rb: Good-by Borland-C.
Sun Oct 18 11:04:36 2015 KOSAKI Motohiro <[email protected]>
* numeric.c: Good-by Borland-C.
* include/ruby/backward/rubyio.h: ditto.
* include/ruby/backward/st.h: ditto.
* include/ruby/backward/util.h: ditto.
* include/ruby/backward/rubysig.h: ditto.
* include/ruby/backward/classext.h: ditto.
* dln.c: ditto.
* gc.c: ditto.
* win32/resource.rb: ditto.
* win32/dir.h: ditto.
* ext/tk/tcltklib.c: ditto.
* NEWS: announce that Borland-C is no longer supported.
Sun Oct 18 10:54:52 2015 KOSAKI Motohiro <[email protected]>
* dln.c: simplify #ifdef. _WIN32 and __CYGWIN__ are exclusive.
see include/ruby/defines.h
* gc.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
Sun Oct 18 10:42:19 2015 KOSAKI Motohiro <[email protected]>
* ruby.c (open_load_file): add a comment.
Sun Oct 18 10:12:46 2015 KOSAKI Motohiro <[email protected]>
* file.c (rb_file_identical_p): simplify ifdefs
Sun Oct 18 10:01:40 2015 KOSAKI Motohiro <[email protected]>
* ChangeLog: Good-bye OS/2.
* common.mk: ditto.
* configure.in: ditto.
* dln_find.c: ditto.
* ext/Setup.emx: ditto.
* ext/extmk.rb: ditto.
* ext/socket/extconf.rb: ditto.
* ext/zlib/extconf.rb: ditto.
* file.c: ditto.
* include/ruby/defines.h: ditto.
* io.c: ditto.
* lib/mkmf.rb: ditto.
* missing/os2.c: ditto.
* process.c: ditto.
* ruby.c: ditto.
* NEWS: announce OS/2 is no longer supported.
Sun Oct 18 08:50:15 2015 KOSAKI Motohiro <[email protected]>
* include/ruby/defines.h (DOSISH): add comments.
Sun Oct 18 08:26:51 2015 KOSAKI Motohiro <[email protected]>
* io.c (fptr_finalize): don't release gvl if fptr is not writable.
writable fd may block on close(2) when it's on NFS. But readonly
fd doesn't. [Bug #11559]
result: make benchmark OPTS="-p bm_require_t -e ruby-trunk -e ruby-2.2.2"
build-ruby: 0.171
ruby 2.3.0dev(r52151): 0.659
ruby 2.2.0p95 (r50295): 0.834
Sun Oct 18 09:32:58 2015 KOSAKI Motohiro <[email protected]>
* file.c (ruby_is_fd_loadable): this should be fail if st_mode is
not regular file nor FIFO.
Sun Oct 18 09:20:17 2015 KOSAKI Motohiro <[email protected]>
* ruby.c (open_load_file): use rb_thread_wait_fd() instead of reopen.
Sun Oct 18 05:11:22 2015 KOSAKI Motohiro <[email protected]>
* ruby.c (open_load_file): reset O_NONBLOCK after open.
Even if S_ISREG() is true, the file may be file on FUSE filesystem
or something. We can't assume O_NONBLOCK is safe.
Moreover, we should wait if the path is point to FIFO. That's
FIFO semantics. GVL should be transparent from ruby script.
Thus, just reopen without O_NONBLOCK for filling the requirements.
[Bug #11060][Bug #11559]
* ruby.c (loadopen_func): new for the above.
* file.c (ruby_is_fd_loadable): new. for checks loadable file type
of not.
* file.c (rb_file_load_ok): use ruby_is_fd_loadble()
* internal.h: add ruby_is_fd_loadble()
* common.mk: now, ruby.o depend on thread.h.
* test/ruby/test_require.rb
(TestRequire#test_loading_fifo_threading_success): new test.
This test successful case that loading from FIFO.
* test/ruby/test_require.rb
(TestRequire#test_loading_fifo_threading_raise): rename from
test_loading_fifo_threading. You shouldn't rescue an exception
if you test raise or not.
Moreover, this case should be caught IOError because load(FIFO)
should be blocked until given any input.
Sat Oct 17 13:55:32 2015 Nobuyoshi Nakada <[email protected]>
* file.c (rb_file_expand_path_internal): concatenate converted
string to the result instead of making converted string and
append it.
* string.c (rb_str_cat_conv_enc_opts): from rb_str_conv_enc_opts,
separate function to concatenate with transcoding.
Sat Oct 17 13:19:10 2015 Nobuyoshi Nakada <[email protected]>
* ruby.c (load_file): unify each preparations and clean-ups by
merging load_file_internal and load_file_internal2, and remove
nested rb_protect and rb_ensure.
Sat Oct 17 05:28:32 2015 Rei Odaira <[email protected]>
* test/ruby/test_symbol.rb (test_symbol_fstr_leak): add a warm-up
code and check RSS to avoid false positive on AIX and false
negative on Mac OS X. [Bug #10686]
Fri Oct 16 15:54:37 2015 Nobuyoshi Nakada <[email protected]>
* file.c (rb_file_load_ok): open in non-blocking mode withoout
releasing GVL. don't care about others than regular files and
directories. [ruby-dev:49272] [Bug #11559]
* ruby.c (load_file_internal): ditto.
Thu Oct 15 23:56:03 2015 Nobuyoshi Nakada <[email protected]>
* proc.c (rb_sym_to_proc): make void env.
Thu Oct 15 13:37:23 2015 Nobuyoshi Nakada <[email protected]>
* proc.c (rb_sym_to_proc): move from string.c and create a Proc
with no environments. [ruby-core:71088] [Bug #11594]
Thu Oct 15 01:57:03 2015 CHIKANAGA Tomoyuki <[email protected]>
* test/objspace/test_objspace.rb
(test_trace_object_allocations_start_stop_clear): clear object
allocation table first to get rid of erroneous detection for obj3.
[ruby-dev:49095] [Bug #11271]
Thu Oct 15 01:53:38 2015 Benoit Daloze <[email protected]>
* test/ostruct/test_ostruct.rb: Add tests for OpenStruct#respond_to.
Patch by @jeremy in [GH-1041]: https://github.com/ruby/ruby/pull/1041
Thu Oct 15 01:49:25 2015 Benoit Daloze <[email protected]>
* lib/ostruct.rb: Finish defining OpenStruct attributes lazily.
Patch by @sferik in [GH-1037]: https://github.com/ruby/ruby/pull/1037
This commit is an addendum to https://github.com/ruby/ruby/pull/1033.
It:
1. lazily defines attribute accessors for copied and marshaled objects,
2. returns nil when an attribute reader is not defined, and
3. defines respond_to_missing? to maintain the same respond_to? behavior
Wed Oct 14 16:56:50 2015 Nobuyoshi Nakada <[email protected]>
* configure.in: check for libunwind.h, which is not available in
very old OS X SDK. [ruby-core:71080] [Bug #11591]
Wed Oct 14 14:11:42 2015 Brian Black <[email protected]>
* iseq.c (rb_insn_operand_intern): change kw in callinfo disasm from the
number of keyword arguments to an ordered list of the keywords used.
[Feature #11589]
Wed Oct 14 13:58:44 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_nextc): send a warning to ripper, not to STDERR
always.
* parse.y (rb_warn1, rb_warning1): move argument conversions to
callers. PRIsVALUE is not valid in String#%.
Wed Oct 14 13:37:23 2015 SHIBATA Hiroshi <[email protected]>
* lib/racc/rdoc/grammar.en.rdoc: fix spell error.
[fix GH-1053][ci skip] Patch by @Matrixbirds
Tue Oct 13 22:06:50 2015 Tanaka Akira <[email protected]>
* ext/socket/raddrinfo.c (rsock_fd_family): Check sa_len.
Tue Oct 13 12:14:10 2015 Craig Davison <[email protected]>
* ext/socket/rsock_addrinfo (rsock_addrinfo): specify address
family. [Fix GH-1052]
* ext/socket/udpsocket.c (udp_connect, udp_bind, udp_send):
address family by the receiver.
Sun Oct 11 07:09:19 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.c (vm_push_frame): initialize other than sp (and ep)
first for performance.
Sun Oct 11 06:21:50 2015 Koichi Sasada <[email protected]>
* vm_eval.c, internal.h (rb_yield_1): added for performance which
doesn't check Qundef.
* numeric.c (int_dotimes): use rb_yield_1.
Sun Oct 11 06:19:49 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.c (vm_call_iseq_setup_normal): setup sp first
for performance.
Sun Oct 11 05:29:51 2015 Koichi Sasada <[email protected]>
* vm.c (invoke_block_from_c): split this function into several
functions.
* vm_insnhelper.c (vm_yield_callee_setup_arg): remove this function
because it is only delegation function.
Sun Oct 11 03:48:46 2015 Koichi Sasada <[email protected]>
* gc.c (newobj_of_slowpass): fix typo (pass -> path).
Pointed out by Yukihiro Matsumoto <[email protected]>.
* gc.c (newobj_of_...): `of' is unnecessary.
Sat Oct 10 19:04:42 2015 Nobuyoshi Nakada <[email protected]>
* ext/socket/udpsocket.c (udp_connect, udp_bind): get open files
inside ensure functions.
Sat Oct 10 18:35:12 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.c (vm_call_method0): do not propagate enable_fastpath,
but pass dummy CC to prevent wrong caching.
Sat Oct 10 15:28:45 2015 Koichi Sasada <[email protected]>
* import a github pull request
https://github.com/ruby/ruby/pull/1050
by Kazuho Oku <[email protected]>.
This pull request has the following commits.
* gc.c: reduce # of args to 6 (max. of register args on x86-64) so
that the `newobj_of_slowpass` can be called via TCO.
* gc.c (newobj_of), string.c (str_duplicate): for performance,
the hot functions must be inlined.
* gc.c: for performance, preceding arguments of `.*newobj_of.*`
must be same, so that the arg registers can be reused in case of
TCO.
Sat Oct 10 08:52:21 2015 Nobuyoshi Nakada <[email protected]>
* ext/socket/udpsocket.c (udp_connect, udp_bind, udp_send): fix
memory leaks at closed socket.
Fri Oct 9 17:29:07 2015 Shugo Maeda <[email protected]>
* lib/net/ftp.rb (parse257): refactor.
Fri Oct 9 16:42:26 2015 Shugo Maeda <[email protected]>
* lib/net/imap.rb: use frozen_string_literal: true.
* test/net/imap/test_imap.rb: ditto.
* test/net/imap/test_imap_response_parser.rb: ditto.
Fri Oct 9 15:52:28 2015 Shugo Maeda <[email protected]>
* lib/net/ftp.rb: use frozen_string_literal: true.
* test/net/ftp/test_buffered_socket.rb: ditto.
* test/net/ftp/test_ftp.rb: ditto.
* test/net/ftp/test_mlsx_entry.rb: ditto.
Fri Oct 9 14:12:35 2015 Shota Fukumori (sora_h) <[email protected]>
* ext/openssl/lib/openssl/ssl.rb: Revert r52082 because it was
dropping TLS v1.1 support too. Supporting only TLS v1.2 is too
early, because many popular websites still don't support it.
For instance, Servers where aws-sdk connects to still don't support
TLS v1.2 and it became broken.
We should consider more carefully about this.
[Fix GH-873] [Feature #11524]
Fri Oct 9 12:52:08 2015 Shugo Maeda <[email protected]>
* compile.c (iseq_compile_each): Dynamic string literals (e.g.,
"#{x}") should not be frozen because they don't literally
represent strings.
https://twitter.com/shugomaeda/status/651937650027401216
https://twitter.com/yukihiro_matz/status/651942882312482817
https://twitter.com/yukihiro_matz/status/651980835181096960
Fri Oct 9 06:52:49 2015 KOSAKI Motohiro <[email protected]>
* benchmark/prepare_require.rb: skip file creation if it already
exist. Suggested by ko1.
Fri Oct 9 06:18:04 2015 KOSAKI Motohiro <[email protected]>
* benchmark/bm_require.rb: new benchmark for require.
* benchmark/bm_require_thread.rb: new benchmark for conflicting
require vs thread. like [Bug #11559]
* prepare_require.rb: new file for preparing above tests.
* prepare_require.rb: ditto.
Thu Oct 8 14:10:45 2015 Zachary Scott <[email protected]>
* ext/openssl/lib/openssl/ssl.rb: Default to TLSv1.2 and drop TLS v1
Patch provided by @claudijd [Fixes GH-873] [Feature #11524]:
https://github.com/ruby/ruby/pull/873
Wed Oct 7 22:55:02 2015 Nobuyoshi Nakada <[email protected]>
* test/minitest/metametameta.rb (with_output): restore output to
fix mixing test result output in worker responses.
Wed Oct 7 21:32:51 2015 Nobuyoshi Nakada <[email protected]>
* string.c (str_duplicate): move from rb_str_resurrect to short
circuit initialization.
Wed Oct 7 20:43:14 2015 Nobuyoshi Nakada <[email protected]>
* string.c (rb_str_resurrect): fix resurrection of short enough to
be embedded but not embedded string.
Wed Oct 7 20:17:29 2015 Koichi Sasada <[email protected]>
* gc.c (newobj_of): divide fast path and slow path
to avoid register savings for fast path.
This idea is given by Kazuho Oku <[email protected]>.
Wed Oct 7 17:30:50 2015 Nobuyoshi Nakada <[email protected]>
* string.c (rb_str_times): optimize for the argument 0 and 1.