-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
7340 lines (4596 loc) · 242 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
Thu Aug 20 08:53:09 2015 Nobuyoshi Nakada <[email protected]>
* vm_method.c (rb_obj_respond_to): reuse found method entry
instead of searching same entry repeatedly.
Thu Aug 20 08:31:17 2015 Nobuyoshi Nakada <[email protected]>
* dir.c (replace_real_basename), win32/win32.c (opendir_internal):
check reparse point tags and treat supported tags only as
symbolic links. [ruby-core:70454] [Bug #11462]
Wed Aug 19 23:59:28 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): add OP_ALL to
existing options rather than just setting it. Some vendors apply
custom patches to their versions of OpenSSL that set default values
for options. This commit respects the custom patches they've
applied.
* test/openssl/test_ssl.rb (class OpenSSL): check that OP_ALL has been
added to the options.
Wed Aug 19 23:55:29 2015 Nobuyoshi Nakada <[email protected]>
* process.c (rb_f_spawn): [DOC] elaborate environment variable
values. [ruby-core:70456] [Bug #11463]
Wed Aug 19 23:48:06 2015 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (winnt_lstat): check reparse point tags and treat
supported tags only as symbolic links.
[ruby-core:70454] [Bug #11462]
Tue Aug 18 20:05:49 2015 NARUSE, Yui <[email protected]>
* thread_pthread.c (reserve_stack): ensure the memory is really
allocated. [Bug #11457]
Tue Aug 18 17:19:21 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (IS_BEG): include labeled argument state, which was
EXPR_LABELARG. [ruby-dev:49221] [Bug #11456]
Tue Aug 18 16:16:21 2015 Nobuyoshi Nakada <[email protected]>
* include/ruby/ruby.h (RClass): define only in C, `__attribute__`
between `struct` and the name can't compile with g++.
[ruby-core:70297] [Bug #11426]
Mon Aug 17 20:56:36 2015 Nobuyoshi Nakada <[email protected]>
* parse.y: fix syntax error at do-block after a conditional
operator. separate label-allowed and after-a-label states from
others as bit flags. [ruby-dev:48790] [Bug #10653]
Mon Aug 17 11:57:36 2015 Nobuyoshi Nakada <[email protected]>
* io.c (rb_io_each_codepoint): raise an exception at incomplete
character before EOF when conversion takes place. [Bug #11444]
Sun Aug 16 17:33:45 2015 SHIBATA Hiroshi <[email protected]>
* gems/bundled_gems: update latest version of bundled gems.
It includes minitest-5.8.0 and test-unit 3.1.3.
Sun Aug 16 17:24:10 2015 Kazuki Tsujimoto <[email protected]>
* gc.c (gc_mark_children): check if RCLASS_EXT is valid
before marking. This fixes the following test failure
introduced in r51126:
make test-all TESTOPTS='--gc-stress ruby/test_refinement.rb'
Sat Aug 15 10:51:08 2015 Nobuyoshi Nakada <[email protected]>
* ext/win32/lib/win32/registry.rb (API#SetValue): data size should
be in bytes, not in chars. [ruby-core:70365] [Bug #11439]
Sat Aug 15 10:15:20 2015 Nobuyoshi Nakada <[email protected]>
* io.c (rb_io_each_codepoint): read more data when read partially.
[ruby-core:70379] [Bug #11444]
Sat Aug 15 04:33:39 2015 Eric Wong <[email protected]>
* hash.c (any_hash): skip rb_objid_hash for static syms
(rb_num_hash_start): extract from rb_ident_hash
(rb_objid_hash): call rb_num_hash_start
(rb_ident_hash): ditto
[ruby-core:70181] [Feature #11405]
Sat Aug 15 04:16:13 2015 Eric Wong <[email protected]>
* iseq.c (rb_iseq_mark): reduce NULL checks
Fri Aug 14 18:50:57 2015 Eric Wong <[email protected]>
* method.h (METHOD_ENTRY_VISI_SET): cast visi to int
(METHOD_ENTRY_FLAGS_SET): ditto
Fri Aug 14 18:43:11 2015 Eric Wong <[email protected]>
* process.c (close_unless_reserved): add extra check
(dup2_with_divert): remove
(redirect_dup2): use dup2 without divert
(before_exec_non_async_signal_safe): adjust call + comment
(rb_f_exec): stop timer thread for all OSes
(rb_exec_without_timer_thread): remove
* eval.c (ruby_cleanup): adjust call
* thread.c (rb_thread_stop_timer_thread): always close pipes
* thread_pthread.c (struct timer_thread_pipe): add writing field,
mark owner_process volatile for signal handlers
(rb_thread_wakeup_timer_thread_fd): check valid FD
(rb_thread_wakeup_timer_thread): set writing flag to prevent close
(rb_thread_wakeup_timer_thread_low): ditto
(CLOSE_INVALIDATE): new macro
(close_invalidate): new function
(close_communication_pipe): removed
(setup_communication_pipe_internal): make errors non-fatal
(setup_communication_pipe): ditto
(thread_timer): close reading ends inside timer thread
(rb_thread_create_timer_thread): make errors non-fatal
(native_stop_timer_thread): close write ends only, always,
wait for signal handlers to finish
(rb_divert_reserved_fd): remove
* thread_win32.c (native_stop_timer_thread): adjust (untested)
(rb_divert_reserved_fd): remove
* vm_core.h: adjust prototype
[ruby-core:70386] [Bug #11336]
Fri Aug 14 18:40:43 2015 Nobuyoshi Nakada <[email protected]>
* ext/win32/lib/win32/registry.rb (API#SetValue): add terminator
size, not 1 byte. [ruby-core:70365] [Bug #11439]
Thu Aug 13 22:49:42 2015 Juanito Fatas <[email protected]>
* lib/timeout.rb (Timeout#timeout): freeze a string message to
reduce string allocations. [Fix GH-996]
Thu Aug 13 17:42:34 2015 Koichi Sasada <[email protected]>
* vm_core.h (rb_call_info_kw_arg_bytes): move the definition
to iseq.h because this function is shared with iseq.c and compile.c.
Thu Aug 13 14:36:31 2015 Nobuyoshi Nakada <[email protected]>
* object.c (rb_num_to_dbl): move from num2dbl_with_to_f in math.c.
Thu Aug 13 09:01:25 2015 Eric Wong <[email protected]>
* load.c (features_index_add): avoid repeat calculation
Wed Aug 12 21:57:31 2015 Koichi Sasada <[email protected]>
* id_table.c: IMPL() macro accept op as _opname instead of opname
because jemalloc seems to replace the word `free' to `je_free'.
Wed Aug 12 21:51:11 2015 Koichi Sasada <[email protected]>
* id_table.c (mix_id_table_insert): fix memory leak.
Wed Aug 12 21:17:38 2015 Eric Wong <[email protected]>
* iseq.c (iseq_memsize): reimplement for wrapper
(param_keyword_size): extracted from iseq_memsize
(iseqw_mark): new mark function
(iseqw_data_type): new data type
(iseqw_new): wrap as iseqw_data_type
(iseqw_check): adjust for wrapper
(Init_ISeq): remove iseqw_iseq_key initialization
* test/objspace/test_objspace.rb: new test
[ruby-core:70344] [Feature #11435]
Wed Aug 12 21:15:27 2015 Eric Wong <[email protected]>
* vm_core.h (rb_call_info_kw_arg_bytes): extract from compile.c
* compile.c (iseq_build_callinfo_from_hash): use above function
Wed Aug 12 18:00:17 2015 Koichi Sasada <[email protected]>
* class.c (move_refined_method): same as the last commit.
Wed Aug 12 17:57:53 2015 Koichi Sasada <[email protected]>
* class.c, gc.c vm.c: use ID_TABLE_* instead of ST_*
(such as ST_CONTINUE) for enum rb_id_table_iterator_result.
Wed Aug 12 17:05:36 2015 Koichi Sasada <[email protected]>
* id_table.h: introduce ID key table.
[Feature #11420]
This table only manage ID->VALUE table to reduce overhead of st.
Some functions prefixed rb_id_table_* are provided.
* id_table.c: implement rb_id_table_*.
There are several algorithms to implement it.
Now, there are roughly 4 types:
* st
* array
* hash (implemented by Yura Sokolov)
* mix of array and hash
The macro ID_TABLE_IMPL can choose implementation.
You can see detailes about them at the head of id_table.c.
At the default, I choose 34 (mix of list and hash).
This is not final decision.
Please report your suitable parameters or
your data structure.
* symbol.c: introduce rb_id_serial_t and rb_id_to_serial()
to represent ID by serial number.
* internal.h: use id_table for method tables.
* class.c, gc.c, marshal.c, vm.c, vm_method.c: ditto.
Wed Aug 12 05:19:11 2015 Eric Wong <[email protected]>
* parse.y (rb_parser_compile_cstr): remove volatile arg
(rb_parser_compile_string): ditto
(rb_parser_compile_file): ditto
(rb_parser_compile_string_path): ditto
(rb_parser_compile_file_path): ditto
[ruby-core:70323] [Misc #11431]
Tue Aug 11 22:59:57 2015 Tanaka Akira <[email protected]>
* numeric.c (Init_Numeric): Fix document for Float::MIN and
Float::EPSILON.
Tue Aug 11 15:22:31 2015 Nobuyoshi Nakada <[email protected]>
* include/ruby/ruby.h (ALLOCV_N): check integer overflow, as well
as ruby_xmalloc2. pointed out by Paul <pawlkt AT gmail.com>.
Tue Aug 11 14:57:09 2015 Nobuyoshi Nakada <[email protected]>
* array.c (rb_ary_repeated_permutation): fix buffer size, ALLOCV_N
already multiplies element size.
Tue Aug 11 12:13:20 2015 Jeremy Evans <[email protected]>
* test/openssl/test_ssl.rb: Fix LocalJumpErrors being raised
in OpenSSL tests. [ruby-core:70020][Bug #11368]
Tue Aug 11 11:54:13 2015 Alexey Lipnyagov <[email protected]>
* string.c: Fix documentation for String#slice
[ruby-core:70298][Bug #11427]
Tue Aug 11 11:53:28 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (superclass): make superclass rule optional and allow
any contents without a terminator. [EXPERIMENTAL]
Tue Aug 11 10:58:42 2015 Juanito Fatas <[email protected]>
* string.c: [DOC] Make #end_with? example doc symmetry
with #start_with? [fix GH-992][ci skip]
Tue Aug 11 10:51:19 2015 SHIBATA Hiroshi <[email protected]>
* test/ruby/test_array.rb: Add test for `Array#flatten` with level 1
[fix GH-986] Patch @yui-knk
Tue Aug 11 10:48:16 2015 SHIBATA Hiroshi <[email protected]>
* enum.c: added doc for Enumerable#zip
[fix GH-985] Patch by @yui-knk
* test/ruby/test_enum.rb: added tests for Enumerable#zip
[fix GH-985] Patch @yui-knk
Tue Aug 11 10:33:26 2015 SHIBATA Hiroshi <[email protected]>
* vm_method.c: typo fix [fix GH-993][ci skip] Patch by @0x0dea
* test/ruby/test_refinement.rb: ditto.
Sun Aug 9 14:15:54 2015 Nobuyoshi Nakada <[email protected]>
* vm.c (Init_vm_objects, rb_vm_fstring_table): use frozen_strings
table in rb_vm_t. [ruby-core:70274] [Bug #11423]
Sat Aug 8 03:59:51 2015 Zachary Scott <[email protected]>
* object.c: [DOC] Improve grammar for Module#===
Patch by @SkyBirdSoar in documenting-ruby/ruby#52:
https://github.com/documenting-ruby/ruby/pull/52
Sat Aug 8 03:39:33 2015 Zachary Scott <[email protected]>
* hash.c: [DOC] Improve description of symbol key syntax
Patch by Raphael Das Gupta in documenting-ruby/ruby#51:
https://github.com/documenting-ruby/ruby/pull/51
Fri Aug 7 21:04:19 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_params): turn in_def and in_single into bit
flags and reduce the size by 2-words.
* parse.y (parser_params): remove redundant prefixes.
* parse.y (yylex): non-pure parser has not been supported since
merger of ripper. change argument types from void pointers.
Fri Aug 7 17:07:56 2015 Nobuyoshi Nakada <[email protected]>
* proc.c (method_super_method): uncallable method entry does not
have the defined class, use the owner instead.
[ruby-core:70254] [Bug #11419]
* test/ruby/test_method.rb (test_super_method_unbound): add test
by Akira Matsuda.
Thu Aug 6 10:49:57 2015 Nobuyoshi Nakada <[email protected]>
* node.c (rb_alloc_tmp_buffer): round up the size and check the
range.
* ruby_atomic.h (ATOMIC_VALUE_EXCHANGE, ATOMIC_VALUE_CAS): add
atomic operations for VALUE.
Thu Aug 6 08:15:49 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move
SSLSocket#sysclose to Ruby.
* ext/openssl/ossl_ssl.c (ossl_ssl_close): ditto
Thu Aug 6 07:57:21 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move nonblock
enable to SSLSocket#initialize and remove Nonblock module.
Thu Aug 6 07:53:47 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move
OpenSSL::SSL::SSLSocket#initialize to Ruby.
* ext/openssl/ossl_ssl.c: ditto
Thu Aug 6 02:25:31 2015 Nobuyoshi Nakada <[email protected]>
* node.c (rb_alloc_tmp_buffer): use NODE_ALLOCA to mark locations
like as builtin alloca. [ruby-core:70251] [Bug #11418]
Wed Aug 5 14:37:55 2015 Nobuyoshi Nakada <[email protected]>
* transcode.c (rb_econv_open0): rb_econv_t::source_encoding_name
and rb_econv_t::destination_encoding_name should refer static
strings always or NULL. [ruby-core:70247] [Bug #11416]
Tue Aug 4 16:53:43 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): extract callback
lookup to private Ruby methods. This means we can keep the default
DH callback logic hidden from consumers. Also, since the SSLSocket
always has a context, we can remove conditionals about that
instance.
* ext/openssl/ossl_ssl.c: move callback lookup methods to private Ruby
methods.
Tue Aug 4 16:40:26 2015 Koichi Sasada <[email protected]>
* test/ruby/test_module.rb: should not expect a method table ordering.
[Feature #11414]
Tue Aug 04 15:30:04 2015 Koichi Sasada <[email protected]>
* proc.c (rb_block_clear_env_self): clear by Qfalse instead of Qnil.
[Bug #11409]
* test/ruby/test_eval.rb: add tests for this issue,
written by @0x0dea.
https://github.com/ruby/ruby/pull/988
Tue Aug 4 12:12:14 2015 Eric Wong <[email protected]>
* variable.c: wrap long lines
Tue Aug 4 09:32:30 2015 SHIBATA Hiroshi <[email protected]>
* proc.c: Removing duplicate doc [fix GH-987][ci skip]
Patch by @ronakjangir47
Tue Aug 4 09:21:58 2015 Richard Schneeman <[email protected]>
* doc/contributing.rdoc: fixed wrong instructions with OS X
[fix GH-989][ci skip] Patch by @schneems
Mon Aug 3 10:08:33 2015 Nobuyoshi Nakada <[email protected]>
* re.c (rb_memsearch): should match only char boundaries in wide
character encodings. [ruby-core:70220] [Bug #11413]
Sun Aug 2 07:01:17 2015 Eric Wong <[email protected]>
* ext/openssl/lib/openssl/buffering.rb (gets):
avoid comparing fixnum with nil
* test/openssl/test_pair.rb: test gets with limit when EOF is hit
Thanks to Bar Hofesh <[email protected]> for the bug report
and testing.
[ruby-core:70149] [Bug #11400]
Sat Aug 1 17:13:15 2015 Kazuki Tsujimoto <[email protected]>
* lib/net/http/response.rb (Net::HTTPResponse::Inflater#finish):
fix a bug that empty gzipped response body causes Zlib::BufError.
[ruby-core:68846] [Bug #11058]
* test/net/http/test_httpresponse.rb: tests for the above.
Sat Aug 1 17:05:18 2015 Kazuki Tsujimoto <[email protected]>
* lib/net/http/response.rb (Net::HTTPResponse#inflater):
fix TypeError. An exception object might be nil.
[ruby-core:68846] [Bug #11058]
Sat Aug 1 09:09:46 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_sslctx_setup): Implement
SSLContext#options and options= using SSL_CTX_set_options and
SSL_CTX_get_options. This reduces the number of ivars we need and
simplifies `ossl_sslctx_setup`.
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): Default `options`
to SSL_OP_ALL
Sat Aug 1 06:54:36 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): OpenSSL declares these
constants as longs, so we should follow that and use LONG2NUM.
http://git.io/vOqxD
Sat Aug 1 04:06:29 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_call_tmp_dh_callback): change callback
to return the Ruby dh (or ecdh) object that the caller cares about
instead of doing rb_iv_get / set to communicate. This means we can
remove an rb_iv_get call, and only use the set calls for their
intended purpose (to prevent the object from being GC'd).
* ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): ditto
* ext/openssl/ossl_ssl.c (ossl_call_tmp_ecdh_callback): ditto
* ext/openssl/ossl_ssl.c (ossl_tmp_ecdh_callback): ditto
Sat Aug 1 03:49:31 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_call_tmp_dh_callback): Similarly to the
tmp_ecdh_callback, the SSLSocket instance always holds a reference
to the SSLContext object (it's always set in `initialize`). The
SSLContext holds a reference to the tmp_dh_callback. Ask the
context for the callback instead of storing the callback in two
places.
Sat Aug 1 03:43:10 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_call_tmp_dh_callback): create an array
and use `rb_apply` to clean up calls to `rb_protect`.
* ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): ditto
Sat Aug 1 03:27:12 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_call_tmp_ecdh_callback): The SSL socket
always holds a reference to the SSLContext object, which will have
the callback object. Ask the context for the callback instead of
storing the callback in two places.
Sat Aug 1 03:14:07 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): convert
`tmp_dh_callback` to Ruby, and call it when setting up an SSL
connection. This allows us to move the "default" behavior to the
reader method.
* ext/openssl/ossl_ssl.c: call the tmp_dh_callback instead of
accessing the SSLContext's internals.
Fri Jul 31 23:34:27 2015 Aaron Patterson <[email protected]>
* .travis.yml: update libssl before running tests.
Thanks to Chris Sinjakli <[email protected]> for figuring out the
travis settings!
Fri Jul 31 21:34:49 2015 Nobuyoshi Nakada <[email protected]>
* load.c (rb_require_internal): use rb_load_internal0 not to raise
a exception to be caught.
Thu Jul 30 13:19:54 2015 Nobuyoshi Nakada <[email protected]>
* variable.c (rb_const_get_0): warn deprecated constant reference.
* variable.c (rb_mod_deprecate_constant): mark constants to be
warned as deprecated. [Feature #11398]
Thu Jul 30 11:53:54 2015 Nobuyoshi Nakada <[email protected]>
* thread.c (rb_thread_s_handle_interrupt): make identity hash, to
compare masking classes just by their IDs.
Thu Jul 30 11:52:55 2015 Nobuyoshi Nakada <[email protected]>
* load.c (rb_load_internal0): stop separating exits at loading
from exits from execution. TAG_FATAL is the only case that
`errinfo` is a Fixnum, and should continue to exit by JUMP_TAG
but not raising as an ordinary exception.
[ruby-core:70169] [Bug #11404]
Thu Jul 30 10:42:27 2015 Alex Dowad <[email protected]>
* load.c (rb_load_internal0): extra check before returning
TAG_RAISE when a non-local transfer of control happens while
loading and parsing a Ruby source file.
[ruby-core:70169] [Bug #11404]
Thu Jul 30 08:48:42 2015 Eric Wong <[email protected]>
* st.c (find_entry): constify st_table*
(find_packed_index_from): ditto
(find_packed_index): ditto
(get_keys): ditto
(get_values): ditto
Thu Jul 30 04:29:25 2015 Eric Wong <[email protected]>
* benchmark/bm_hash_aref_dsym.rb: new benchmark
* benchmark/bm_hash_aref_dsym_long.rb: ditto
* benchmark/bm_hash_aref_fix.rb: ditto
Wed Jul 29 21:38:41 2015 Nobuyoshi Nakada <[email protected]>
* hash.c (any_hash), symbol.c (dsymbol_alloc): fix dynamic symbol
hash value by restricting in Fixnum range, that is `long`.
Wed Jul 29 17:25:46 2015 Nobuyoshi Nakada <[email protected]>
* hash.c (rb_obj_hash): move in order to share with rb_any_hash.
Wed Jul 29 16:00:22 2015 Nobuyoshi Nakada <[email protected]>
* string.c (str_buf_cat): consider empty non-embed string case,
not to loop infinitely. [ruby-core:70074] [Bug #11383]
Wed Jul 29 15:25:19 2015 Nobuyoshi Nakada <[email protected]>
* vm_eval.c (send_internal): set method_missing_reason before
invoking overriding method_missing method so that the default
method_missing can achieve it properly.
[ruby-core:68515] [Bug #10969]
Wed Jul 29 14:54:16 2015 Nobuyoshi Nakada <[email protected]>
* hash.c (rb_sym_hash): return same value as rb_any_hash() of
Symbol. [Bug #9381]
* hash.c (rb_any_hash): fix Float hash. rb_dbl_hash() returns a
Fixnum, but not a long. [Bug #9381]
Wed Jul 29 11:07:10 2015 Nobuyoshi Nakada <[email protected]>
* internal.h (LIKELY, UNLIKELY): make a boolean to enforce 1 or 0.
Wed Jul 29 10:44:43 2015 Alex Dowad <[email protected]>
* gc.c: document argument passed to finalizer proc.
[fix GH-976][ci skip] Patch by @alexdowad
Wed Jul 29 10:36:58 2015 NARUSE, Yui <[email protected]>
* io.c (rb_io_extract_modeenc): add option parameter `flags'
to append extra oflags to normal mode.
[Feature #11253] [ruby-core:69539]
Wed Jul 29 04:54:47 2015 Eric Wong <[email protected]>
* test/rubygems/test_gem_remote_fetcher.rb: pre-generate test key
[ruby-core:70151] [Bug #11397]
Tue Jul 28 10:32:09 2015 Nobuyoshi Nakada <[email protected]>
* internal.h (struct RClass): moved from ruby/ruby.h to hide the
internals.
Tue Jul 28 08:48:29 2015 Nobuyoshi Nakada <[email protected]>
* configure.in (RUBY_TYPE_ATTRIBUTE): attribute declaration for
types.
Tue Jul 28 07:23:03 2015 Eric Wong <[email protected]>
* symbol.h (struct RSymbol): add hashval field
* symbol.c (dsymbol_alloc): setup hashval field once
* hash.c (rb_any_hash): return RSymbol->hashval directly
* common.mk: hash.o depends on symbol.h
Thanks to Bruno Escherl <[email protected]> for the bug report
[ruby-core:70129] [Bug #11396]
Tue Jul 28 03:26:15 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): raise a more
helpful exception when verifying the peer connection and an
anonymous cipher has been selected. [ruby-core:68330] [Bug #10910]
Thanks to Chris Sinjakli <[email protected]> for the patch.
* test/openssl/test_ssl.rb (class OpenSSL): test for change
Mon Jul 27 13:24:11 2015 Koichi Sasada <[email protected]>
* template/id.h.tmpl (ID2ATTRSET): remove an unused macro.
Mon Jul 27 12:21:15 2015 NAKAMURA Usaku <[email protected]>
* test/openssl/test_ssl.rb: run tests on non-Unix platforms.
Sun Jul 26 19:21:31 2015 Nobuyoshi Nakada <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_ssl_alpn_protocol): fix condition
to compile, needs ALPN to be available. [Feature #9390]
Sun Jul 26 11:29:01 2015 Nobuyoshi Nakada <[email protected]>
* signal.c (default_handler, Init_signal): discard SIGSYS, ENOSYS
should raise a SystemCallError always instead.
Sun Jul 26 10:26:35 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_call_servername_cb): set the ssl context
object returned by the servername callback on to the socket as an
instance variable. If the callback allocated a new context object
and didn't keep a reference to it, it could be GC'd out from under
the socket object.
* test/openssl/test_ssl.rb (class OpenSSL): test for change.
Sun Jul 26 10:07:26 2015 Aaron Patterson <[email protected]>
* test/openssl/test_ssl.rb (class OpenSSL): add test coverage around
OpenSSL::SSL::SSLContext#servername_cb
Sun Jul 26 09:10:32 2015 SHIBATA Hiroshi <[email protected]>
* gems/bundled_gems: update latest version of bundled power_assert.
Sun Jul 26 08:49:28 2015 SHIBATA Hiroshi <[email protected]>
* test/rubygems/test_gem_remote_fetcher.rb: backport rubygems upstream
change for OpenSSL key length. see detail to
https://github.com/rubygems/rubygems/pull/1290
Sun Jul 26 08:33:03 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/pkey.rb: implement DEFAULT_512 and
DEFAULT_1024 constants in Ruby.
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): Ask PKey for the
default DH callback since it already must check whether openssl has
been compiled with DH support.
* ext/openssl/ossl_pkey_dh.c (OSSL_PKEY_BN): Remove C definitions of
DEFAULT_512 and DEFAULT_1024
* ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): ditto
* test/openssl/test_pkey_dh.rb (class OpenSSL): add test to ensure the
Ruby definitions are the same as the C definitions were.
Sun Jul 26 08:14:59 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): support
specifically setting the tmp_dh_callback to nil.
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): ditto
* test/openssl/test_pair.rb (module OpenSSL): add a test
Sun Jul 26 07:47:14 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move the default
tmp_dh_callback Ruby code and set it as a default in `initialize`.
* ext/openssl/ossl_pkey_dh.c (static unsigned char DEFAULT_DH_512_GEN):
move this constant to Ruby.
* ext/openssl/ossl_pkey_dh.c (static unsigned char DEFAULT_DH_1024_GEN):
ditto
* ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): ditto
* ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): ditto
* ext/openssl/ossl_ssl.c (ossl_sslctx_setup): tmp_dh_callback should
always be set, so we can remove this conditional
Sun Jul 26 06:22:24 2015 Aaron Patterson <[email protected]>
* test/openssl/test_pair.rb: add a test ensuring that the default DH
callback is used when no DH callback is specified.
Sun Jul 26 04:08:27 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): add missing
instance variables to squash warnings with alpn.
Sun Jul 26 03:42:19 2015 Aaron Patterson <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (module OpenSSL): move
OpenSSL::SSL::SSLContext#initialize implementation to pure Ruby.
* ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): ditto
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): ditto
Sat Jul 25 21:03:45 2015 Nobuyoshi Nakada <[email protected]>
* random.c (fill_random_bytes_syscall): get rid of blocking when
no entropy is available. based on the patch by mame in
[ruby-core:70114]. [Bug #11395]
Sat Jul 25 11:05:31 2015 Nobuyoshi Nakada <[email protected]>
* string.c (str_replace_shared_without_enc): fill the terminator
of embedded strings in wide char encodings.
Sat Jul 25 06:38:36 2015 Koichi Sasada <[email protected]>
* vm_core.h: size should be unsigned.
* rb_call_info_t::index
* rb_iseq_constant_body::stack_max
* rb_iseq_constant_body::local_size
* rb_iseq_constant_body::param::size
* rb_iseq_constant_body::local_table_size
* rb_iseq_constant_body::is_size
* rb_iseq_constant_body::callinfo_size
* iseq.h: same for iseq_catch_table::size.
* compile.c: catch up these fix.
* iseq.c: ditto.
* proc.c: ditto.
* vm.c: ditto.
* vm_args.c: ditto.
* vm_eval.c: ditto.
* vm_insnhelper.c: ditto.
Sat Jul 25 06:00:09 2015 Koichi Sasada <[email protected]>
* vm_core.h: constify rb_iseq_constant_body::line_info_table.
* iseq.c: catch up this fix.
Sat Jul 25 05:56:43 2015 Koichi Sasada <[email protected]>
* vm_core.h: constify rb_iseq_constant_body::param::opt_table and
rb_iseq_constant_body::param::keyword.
* compile.c: catch up this fix.
Sat Jul 25 04:47:01 2015 Koichi Sasada <[email protected]>
* vm_core.h: constify rb_iseq_constant_body::catch_table.
* compile.c (iseq_set_exception_table): catch up this fix.
* iseq.c: ditto.
* vm.c (vm_exec): ditto.
Fri Jul 24 21:29:54 2015 Nobuyoshi Nakada <[email protected]>
* st.c (EQUAL, st_delete_safe): fix arguments order to compare
function, searching key is the first and stored key is the
second always.
Fri Jul 24 21:27:29 2015 Nobuyoshi Nakada <[email protected]>
* string.c (fstr_update_callback): fstring must not be a shared
string, or the content without RSTRING_FSTR may be freed.
[ruby-dev:49188] [Bug #11386]
Fri Jul 24 20:09:43 2015 Naohisa Goto <[email protected]>
* test/rinda/test_rinda.rb (RingIPv6#prepare_ipv6): prevent to use
IPv6 loopback interface for
Rinda::TestRingFinger#test_make_socket_ipv6_multicast and
Rinda::TestRingFinger#test_make_socket_ipv6_multicast_hops.
The tests are skipped if there are no IPv6 devices other than the
loopback device. [Bug #11394] [ruby-dev:49199]
* test/rinda/test_rinda.rb (test_make_socket_ipv6_multicast): ditto
for Rinda::TestRingServer#test_make_socket_ipv6_multicast.
* test/rinda/test_rinda.rb (test_ring_server_ipv6_multicast): ditto
for Rinda::TestRingServer#test_ring_server_ipv6_multicast.
Fri Jul 24 16:35:55 2015 Nobuyoshi Nakada <[email protected]>
* string.c (fstr_update_callback): pool bare strings only.
* string.c (rb_fstring): return the original string with sharing a
fstring if it has extra attributes, not the fstring itself.
[ruby-dev:49188] [Bug #11386]
Fri Jul 24 16:35:34 2015 yui-knk <[email protected]>
* file.c (rb_file_s_extname): [DOC] add an example.
* test/ruby/test_path.rb (test_extname): add tests. [Fix GH-978]
* path starts with dot ('.a.rb')
* path includes dir name ('a/b/d/test.rb')
* path includes dir name and dir name starts with dot
('.a/b/d/test.rb')
Thu Jul 23 18:50:43 2015 Koichi Sasada <[email protected]>
* vm_core.h: constify rb_iseq_constant_body::local_table and
rb_iseq_param_keyword::table and
rb_iseq_param_keyword::default_values.
* compile.c: catch up this fix.
* iseq.c: ditto.
Thu Jul 23 17:30:43 2015 Koichi Sasada <[email protected]>
* vm_core.h: constify rb_iseq_constant_body::iseq_encoded and
rb_control_frame_t::pc.
* compile.c (rb_iseq_translate_threaded_code): catch up this fix.
* iseq.c: ditto.
* vm_exec.c (vm_exec_core): ditto.
Thu Jul 23 10:25:46 2015 Nobuyoshi Nakada <[email protected]>
* include/ruby/ruby.h: add raw FL macros, which assume always the
argument object is not a special constant.
* internal.h (STR_EMBED_P, STR_SHARED_P): valid only for T_STRING.
* string.c: deal with taint flags directly across String instances.
Thu Jul 23 09:05:28 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (lambda_body): pop cmdarg stack for lookahead
token. [ruby-core:70067] [Bug #11380]
Thu Jul 23 04:03:03 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c: fix tests by not setting the instance
variable on the frozen ssl instance.
Thu Jul 23 03:32:26 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c: add ECDH callback support. [Feature #11356]
* test/openssl/test_pair.rb: test for ECDH callback support
Thu Jul 23 03:29:49 2015 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c: add ALPN support. [Feature #9390]
* ext/openssl/extconf.rb: detect ALPN support in OpenSSL
* test/openssl/test_ssl.rb: test for ALPN
Wed Jul 22 23:44:17 2015 Nobuyoshi Nakada <[email protected]>
* string.c (rb_str_reverse): reversed string is not a substring,
and should not set coderange of the original string.
[ruby-dev:49189] [Bug #11387]
Wed Jul 22 20:17:51 2015 Koichi Sasada <[email protected]>
* vm_core.h: modify layout of rb_iseq_constant_body.
Move frequent accessing fields to upper part.
Wed Jul 22 19:57:47 2015 Koichi Sasada <[email protected]>
* vm_core.h: remove unused declaration of
iseq_compile_data_ensure_node_stack.
Wed Jul 22 19:52:45 2015 Koichi Sasada <[email protected]>
* vm_core.h: separate rb_iseq_body into rb_iseq_constant_body and
rb_iseq_variable_body (rb_iseq_t::variable_body).
rb_iseq_variable_body can be modified after compilation.
* compile.c: use rb_iseq_t::variable_body.
* iseq.c: ditto.
* thread.c: ditto.
Wed Jul 22 17:50:35 2015 SHIBATA Hiroshi <[email protected]>
* lib/matrix/eigenvalue_decomposition.rb: refine code style.
[fix GH-959][ci skip] Patch by @bogdanvlviv
Wed Jul 22 15:48:47 2015 SHIBATA Hiroshi <[email protected]>
* test/ruby/test_range.rb: Add test case for Range#end with
exclude_end true case. [fix GH-968] Patch by @yui-knk
Wed Jul 22 09:45:31 2015 Maksim Sitnikov <[email protected]>
* numeric.c (num_coerce): [DOC] fix doc for Numeric#coerce,
missing '+'. [Fix GH-974]
Wed Jul 22 07:24:18 2015 Koichi Sasada <[email protected]>
* make rb_iseq_t T_IMEMO object (type is imemo_iseq).
All contents of previous rb_iseq_t is in rb_iseq_t::body.
Remove rb_iseq_t::self because rb_iseq_t is an object.
RubyVM::InstructionSequence is wrapper object points T_IMEMO/iseq.
So RubyVM::ISeq.of(something) method returns different wrapper
objects but they point the same T_IMEMO/iseq object.
This patch is big, but most of difference is replacement of
iseq->xxx to iseq->body->xxx.
(previous) rb_iseq_t::compile_data is also located to
rb_iseq_t::compile_data.
It was moved from rb_iseq_body::compile_data.
Now rb_iseq_t has empty two pointers.
I will split rb_iseq_body data into static data and dynamic data.
* compile.c: rename some functions/macros.
Now, we don't need to separate iseq and iseqval (only VALUE).
* eval.c (ruby_exec_internal): `n' is rb_iseq_t (T_IMEMO/iseq).
* ext/objspace/objspace.c (count_imemo_objects): count T_IMEMO/iseq.
* gc.c: check T_IMEMO/iseq.
* internal.h: add imemo_type::imemo_iseq.
* iseq.c: define RubyVM::InstructionSequence as T_OBJECT.
Methods are implemented by functions named iseqw_....
* load.c (rb_load_internal0): rb_iseq_new_top() returns
rb_iseq_t (T_IMEMO/iesq).
* method.h (rb_add_method_iseq): accept rb_iseq_t (T_IMEMO/iseq).
* vm_core.h (GetISeqPtr): removed because it is not T_DATA now.
* vm_core.h (struct rb_iseq_body): remove padding for
[Bug #10037][ruby-core:63721].
Wed Jul 22 07:15:33 2015 Koichi Sasada <[email protected]>
* ext/objspace/objspace.c (total_i): no need to skip singleton classes.
Wed Jul 22 06:37:54 2015 Koichi Sasada <[email protected]>
* vm_core.h: constify rb_call_info_t::kw_arg,
rb_control_frame_t::iseq and rb_control_frame_t::block_iseq.
* iseq.c (iseq_free): catch up this fix.
* vm.c: ditto.
* vm_dump.c: ditto.
Wed Jul 22 06:25:45 2015 Koichi Sasada <[email protected]>
* vm_core.h: constify rb_call_info_t::blockiseq and rb_block_t::iseq.
* vm.c, vm_insnhelper.c: catch up this fix.
* iseq.c (iseq_data_to_ary): constify the first iseq parameter.
* vm_insnhelper.c (vm_make_proc_with_iseq): ditto.
Wed Jul 22 06:17:35 2015 Koichi Sasada <[email protected]>
* method.h: constify rb_method_iseq_t::iseqptr.