-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
2754 lines (1727 loc) · 92.7 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
Mon Apr 6 16:09:58 2015 Koichi Sasada <[email protected]>
* vm_args.c: protect value stack from calling other methods
during complex parameter setting process (splat, kw, and so on).
[Bug #11027]
* vm_core.h: remove rb_thead_t::mark_stack_len.
With this modification, we don't need to use th->mark_stack_len.
* test/ruby/test_keyword.rb: add a test.
* cont.c (cont_capture): catch up this fix.
* vm.c (rb_thread_mark): ditto.
Mon Apr 6 11:26:42 2015 NARUSE, Yui <[email protected]>
* tool/downloader.rb (http_options): prevent content auto decoding
because this is a downloader.
Sun Apr 5 09:55:18 2015 NAKAMURA Usaku <[email protected]>
* doc/contributing.rdoc: update Maintainers list.
Sun Apr 5 09:11:00 2015 SHIBATA Hiroshi <[email protected]>
* tool/rbinstall.rb: fix bin script permission of bundled gems.
Sun Apr 5 08:46:08 2015 SHIBATA Hiroshi <[email protected]>
* tool/rbinstall.rb: support --program-suffix option.
Sat Apr 4 21:31:18 2015 SHIBATA Hiroshi <[email protected]>
* lib/rake/*: Gemify rake [fix GH-862][Feature #11025]
* test/rake/*: ditto.
* tool/rbinstall.rb: ditto.
Sat Apr 4 11:30:24 2015 Nobuyoshi Nakada <[email protected]>
* string.c (rb_str_setbyte): check the argument first not to
discard shared string and code range unnecessarily until
actually changing the contents. pointed out by headius.
Sat Apr 4 08:16:43 2015 NARUSE, Yui <[email protected]>
* lib/net/http.rb (edit_path): use path which is absolute ftp url
on using ftp_proxy.
Fri Apr 3 11:43:17 2015 Nobuyoshi Nakada <[email protected]>
* vm_eval.c (vm_call0_cfunc): update invoker arguments.
* vm_insnhelper.c (vm_call_cfunc_latter): ditto.
* vm_insnhelper.c (rb_vm_call_cfunc_push_frame): ditto, and prefix
with rb_.
Thu Apr 2 16:26:59 2015 Nobuyoshi Nakada <[email protected]>
* common.mk, tool/mkconfig.rb: check the running ruby version in
rbconfig.rb with the program version, as RUBY_VERSION has never
been affected by --with-ruby-version option.
[ruby-core:68639] [Bug #11002]
* configure.in (LIBRUBY_DLDFLAGS): compatibility_version must be
valid version numbers, not an arbitrary string.
Wed Apr 1 11:09:15 2015 Nobuyoshi Nakada <[email protected]>
* dir.c (push_glob): remove indirect links of arguments for
trampoline.
Wed Apr 1 09:59:12 2015 Nobuyoshi Nakada <[email protected]>
* lib/fileutils.rb (FileUtils#mv): show the exact target path in
the error message instead of the destination parent directory
name. patched by Joao Britto <jabcalves AT gmail.com> at
[ruby-core:68706]. [Bug #11021]
Tue Mar 31 15:25:07 2015 SHIBATA Hiroshi <[email protected]>
* doc/ChangeLog-0.06_to_0.52: added archived Changelog.
[ruby-list:50105]
* doc/ChangeLog-0.50_to_0.60: ditto.
* doc/ChangeLog-0.60_to_1.1: ditto.
Mon Mar 30 22:02:55 2015 Kazuhiro NISHIYAMA <[email protected]>
* README.EXT.ja: add redirect [ruby-core:68631]
Mon Mar 30 14:42:41 2015 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (fileattr_to_unixmode, winnt_lstat): deal with
symbolic link than directory, and set executable bits.
Mon Mar 30 11:27:54 2015 Nobuyoshi Nakada <[email protected]>
* io.c (copy_stream_body): use the arguments without conversion if
having read, readpartial, and write methods, than conversion by
to_path method. [ruby-core:68676] [Bug #11015]
Sun Mar 29 21:08:37 2015 SHIBATA Hiroshi <[email protected]>
* gc.c (objspace_allrefs_destruct_i): fix a typo.
[Bug #11013]
Sun Mar 29 11:51:32 2015 Nobuyoshi Nakada <[email protected]>
* proc.c (proc_binding): replicate env from method object, and
allocate the local variable area for the iseq local table.
[ruby-core:68673] [Bug #11012]
Sat Mar 28 09:19:41 2015 NARUSE, Yui <[email protected]>
* ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906]
ruby itself (including numeric.c) is built with strict compile
options including -std=iso9899:1999, but ext/date is not.
By the way -std=iso9899:1999 is not only a warning option but also
changes behavior like MACRO definitions for example INFINITY.
gcc on Solaris affect this.
Fri Mar 27 16:34:16 2015 Nobuyoshi Nakada <[email protected]>
* common.mk: revert using BOOTSTRAPRUBY for enc.mk, as
enc/depend uses CONFIG. [ruby-core:68647] [Bug #11004]
Thu Mar 26 10:05:13 2015 SHIBATA Hiroshi <[email protected]>
* test/test_observer.rb: add tests for Observable module.
[fix GH-859] Patch by @brightbits
Thu Mar 26 06:35:10 2015 Eric Wong <[email protected]>
* README.EXT: add redirect [ruby-core:68631]
Wed Mar 25 16:46:49 2015 NARUSE, Yui <[email protected]>
* ext/socket/extconf.rb: Solaris 11 has struct tcp_info.tcpi_ca_state,
but it is a dummy.
* ext/socket/option.c: Solaris 11 doesn't have u_intN_t.
* ext/socket/option.c: Solaris 11 needs inspect_tcpi_msec.
* ext/socket/raddrinfo.c: Solaris 11 has AF_PACKET but doesn't have
related macros.
Wed Mar 25 17:03:08 2015 Nobuyoshi Nakada <[email protected]>
* ext/-test-/file/fs.c (get_fsname): try magic number only if
f_type is included. [ruby-dev:48913] [Bug #11000]
Wed Mar 25 11:20:40 2015 Nobuyoshi Nakada <[email protected]>
* benchmark/bm_hash_aref_flo.rb: make more realistic data.
[ruby-core:68632] [[Bug #10999]
Wed Mar 25 10:39:06 2015 SHIBATA Hiroshi <[email protected]>
* .document: removed needless entries.
Wed Mar 25 08:07:28 2015 Eric Wong <[email protected]>
* doc/extension.rdoc: fix spelling of filename
* doc/extension.ja.rdoc: ditto.
Tue Mar 25 06:55:43 2015 Kazuki Tanaka <[email protected]>
* complex.c (k_inexact_p, k_exact_zero_p): use k_exact_zero_p macro
to remove k_inexact_p macro.
* complex.c (k_exact_one_p): remove unused macro k_exact_one_p.
Tue Mar 24 22:23:33 2015 SHIBATA Hiroshi <[email protected]>
* doc/extention.rdoc: move from toplevel document and added extname.
* doc/extention.ja.rdoc: ditto.
Tue Mar 24 22:06:58 2015 SHIBATA Hiroshi <[email protected]>
* doc/standard_library.rdoc: strip.
Tue Mar 24 22:06:27 2015 SHIBATA Hiroshi <[email protected]>
* doc/standard_library.rdoc: move Thread to Extensions.
Tue Mar 24 21:59:10 2015 SHIBATA Hiroshi <[email protected]>
* doc/contributing.rdoc: update Maintainers list.
Tue Mar 24 19:10:24 2015 Koichi Sasada <[email protected]>
* gc.c (gc_writebarrier_generational): fix messages for rb_bug().
Remove `rb_' prefix.
* gc.c (gc_writebarrier_incremental): ditto.
Tue Mar 24 17:34:01 2015 Shugo Maeda <[email protected]>
* README.ja.md: should be chunibyo.
Tue Mar 24 17:30:12 2015 Nobuyoshi Nakada <[email protected]>
* ext/-test-/file/fs.c (get_fsname): return filesystem name by
statfs/statvfs. [ruby-core:68624] [Bug #10998]
Tue Mar 24 16:46:02 2015 NAKAMURA Usaku <[email protected]>
* tool/redmine-backporter.rb: now doesn't required spaces just after
`!`.
Mon Mar 23 23:18:27 2015 Nobuyoshi Nakada <[email protected]>
* dir.c (dir_close): don't raise on double close for consistent to
IO#close. [Feature #10950]
Mon Mar 23 21:22:07 2015 Nobuyoshi Nakada <[email protected]>
* win32/file.c (rb_readlink): move from file.c for better buffer
allocation and the result encoding.
* win32/win32.c (wreadlink, rb_w32_ureadlink): implement readlink().
Mon Mar 23 14:40:45 2015 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (winnt_stat): stat with following symbolic links.
* win32/win32.c (winnt_lstat): rename old winnt_stat, which does
not follow symbolic links.
Mon Mar 23 01:44:35 2015 Nobuyoshi Nakada <[email protected]>
* marshal.c (r_symreal): register symbol names as strings first so
that r_symlink always returns valid names.
[ruby-core:68587] [Bug #10991]
* marshal.c (r_ivar, r_object0): now need to intern symbol names.
* marshal.c (r_object0): compare with symbol names.
Sun Mar 22 22:07:40 2015 Kouhei Sutou <[email protected]>
* doc/etc.rd.ja: Fix wrong coding for Emacs.
Sun Mar 22 09:53:15 2015 Nobuyoshi Nakada <[email protected]>
* tool/make-snapshot (package): add default CONFIGURE name to
follow r50039.
* tool/make-snapshot (package): substitute configuration variables
in Makefile.in instead of passing by the command line, and make
temporary Makefile instead of a pipe.
Sun Mar 22 08:09:47 2015 Nobuyoshi Nakada <[email protected]>
* common.mk (ext/ripper/ripper.c, ext/rbconfig/sizeof/sizes.c):
strip autogenerated dependencies which have invalid syntax in
other than nmake.
Sat Mar 21 15:01:26 2015 Nobuyoshi Nakada <[email protected]>
* ext/io/console/console.c (console_set_winsize): use handle for
writing. GetConsoleScreenBufferInfo seems failing on a handle
for reading.
* io.c: [DOC] update the example of IO#winsize to use $stdout
instead of $stdin, which does not work on Windows. a patch by
Jan Lelis <mail AT janlelis.de> at [ruby-core:68574].
[Bug #10986]
Fri Mar 20 18:41:03 2015 Nobuyoshi Nakada <[email protected]>
* proc.c (respond_to_missing_p): check if the receiver responds to
the given method by respond_to_missing?.
* proc.c (mnew_missing): create Method object for method_missing.
[ruby-core:68564] [Bug #10985]
Fri Mar 20 17:43:18 2015 SHIBATA Hiroshi <[email protected]>
* .travis.yml: enabled email notification.
Fri Mar 20 17:39:52 2015 SHIBATA Hiroshi <[email protected]>
* .travis.yml: removed Ruby 1.9.3 build on Travis CI
Fri Mar 20 12:38:36 2015 Koichi Sasada <[email protected]>
* gc.c (obj_info): obj_info() can receive internal objects.
* gc.c (check_rvalue_consistency): obj_info() returns const char *.
Fri Mar 20 12:14:37 2015 Koichi Sasada <[email protected]>
* gc.c (obj_info): show class name and T_DATA type_name.
Thu Mar 19 22:12:46 2015 Koichi Sasada <[email protected]>
* gc.c (rb_copy_wb_protected_attribute): `dest' can be WB unprotected.
Thu Mar 19 21:25:25 2015 Koichi Sasada <[email protected]>
* gc.c (rb_copy_wb_protected_attribute): demote `dest' object.
Thu Mar 19 16:18:00 2015 Koichi Sasada <[email protected]>
* gc.c, internal.h: export rb_gc_verify_internal_consistency().
Thu Mar 19 16:15:24 2015 Koichi Sasada <[email protected]>
* gc.c (obj_info): show allocation site if GC_DEBUG is not 0.
Thu Mar 19 16:12:01 2015 Koichi Sasada <[email protected]>
* gc.c (newobj_of): fix RGENGC_OLD_NEWOBJ_CHECK logics.
* skip on incremental marking because not sure what happen :p
* rb_gc_writebarrier_remember() is enough to mark children.
Thu Mar 19 16:08:42 2015 Koichi Sasada <[email protected]>
* gc.c (rb_copy_wb_protected_attribute): need demote for old objects.
Thu Mar 19 10:31:00 2015 Nobuyoshi Nakada <[email protected]>
* random.c (fill_random_bytes): release the handle in the static
variable, not a local variable.
Thu Mar 19 06:30:35 2015 Koichi Sasada <[email protected]>
* object.c (rb_obj_clone): do not touch age (FL_PROMOTED[01]) because
rb_obj_alloc() can return old object in debug.
Thu Mar 19 06:29:28 2015 Koichi Sasada <[email protected]>
* test/objspace/test_objspace.rb: flag name was changed
(long_lived -> uncollectible).
Thu Mar 19 05:30:13 2015 Koichi Sasada <[email protected]>
* iseq.c (iseq_mark): skip some marking if iseq->orig is available.
* iseq.c (rb_iseq_clone): need WB for iseq1->klass = iseq0->klass
(done in MEMCPY).
Thu Mar 19 04:55:53 2015 Koichi Sasada <[email protected]>
* internal.h (IMEMO_DEBUG): added.
* internal.h: remove unused FL_IMEMO_MARK_V[0-3].
* gc.c (rb_imemo_new_debug): added.
* gc.c (obj_info): show imemo type name.
Thu Mar 19 04:52:26 2015 Koichi Sasada <[email protected]>
* gc.c (RGENGC_OLD_NEWOBJ_CHECK): add check mechanism.
If RGENGC_OLD_NEWOBJ_CHECK > 0, then create old objects
(not new objects) periodically.
Create one old objects per RGENGC_OLD_NEWOBJ_CHECK objects are
created.
Thu Mar 19 04:46:36 2015 Koichi Sasada <[email protected]>
* enum.c (enum_sort_by): add WBs.
Thu Mar 19 03:37:52 2015 Koichi Sasada <[email protected]>
* gc.c (check_rvalue_consistency): refactoring.
* not inline on RGENGC_CHECK_MODE > 0.
* check SPECIAL_CONST_P(obj) first.
* add a check that remembered_bit is only TRUE when old (age == 3).
* gc.c (RVALUE_DEMOTE): should clear RVALUE_REMEMBERED bit.
remembered_bit should be TRUE only for old (age == 3) objects.
Actually there are no effect because demoted objects will be
uncollectible WB unprotected objects (marked at the beginning of
every minor GC).
Thu Mar 19 02:52:48 2015 Koichi Sasada <[email protected]>
* gc.c: rename terminologies.
* long_lived -> uncollectible:
because this bitmap does not mean "long lived objects in past",
but means "prohibit collection these objects until next major GC".
Uncollectible objects consist of two types objects, one is old
objects (WB protected objects which age == 3) and another is
uncollectible WB unprotected objects which are referred from old
objects
* remembered_wb_unprotected_objects ->
uncollectible_wb_unprotected_objects:
because uncollectible objects does not mean remembered objects.
Wed Mar 18 17:21:12 2015 Koichi Sasada <[email protected]>
* gc.c (gc_writebarrier_generational): add an alternative write
barrier (WB) implementation.
When finding reference from [Old obj] to [New obj] by WB, current
implementation marks [Old obj] as remembered old objects and marks
children of [Old obj] at the beginning of marking.
Added (but disabled) code changes current behaviour. This fix promote
[New obj] to old and marks as a remembered old object. We can assume
"new objects referred from old objects are maybe long-lived old
objects".
Disadvantage of added algorithm is we may promote unwilling
short-lived objects. For example, consider many new objects push and
pop to an old stack object. All of new objects (short-lived objects)
promote to old objects unexpectedly.
To compare these behaviour, I add this new code (but disabled it).
Wed Mar 18 17:14:39 2015 Koichi Sasada <[email protected]>
* gc.c (RVALUE_PROMOTE_RAW): rename to RVALUE_OLD_LONG_LIVED_SET()
to make clear.
Wed Mar 18 17:10:01 2015 Koichi Sasada <[email protected]>
* gc.c (check_rvalue_consistency): do not need to check is_sweeping().
Wed Mar 18 14:13:22 2015 Koichi Sasada <[email protected]>
* benchmark/bm_vm1_gc_wb_ary.rb: run GC to finish "marking" phase.
* benchmark/bm_vm1_gc_wb_obj.rb: ditto.
* benchmark/bm_vm1_gc_wb_ary_promoted.rb: add parameter
full_mark: false to invoke only minor GC.
* benchmark/bm_vm1_gc_wb_obj_promoted.rb: ditto.
Wed Mar 18 12:07:36 2015 Koichi Sasada <[email protected]>
* string.c: add a comment about RSTRING_FSTR.
Wed Mar 18 12:01:53 2015 Nobuyoshi Nakada <[email protected]>
* hash.c (rb_any_hash): use same hash values with Float#hash so
that -0.0 and +0.0 will be identical.
[ruby-core:68541] [Bug #10979]
Wed Mar 18 05:34:32 2015 Koichi Sasada <[email protected]>
* string.c: introduce STR_FAKESTR to show string is FAKESTR or not.
* string.c (STR_SET_SHARED): ignore FAKESTR because only Ruby objects
can use write barrier.
Tue Mar 17 18:59:16 2015 Koichi Sasada <[email protected]>
* include/ruby/ruby.h: use rb_gc_writebrrier() simply.
For incremental GC, we need to get a pointer to the objspace.
We can share this pointer for the following WB process.
And considering icache hit ratio, process in the GC.
* gc.c (rb_gc_writebarrier): added.
* gc.c (gc_writebarrier_generational, gc_writebarrier_incremental):
make them NOINLINE because inlining them into rb_gc_writebarrier()
makes a prologue code of rb_gc_writebarrier() longer (storing callee
save registers).
This patch improve the performance of WB on micro-benchmarks.
name ruby 2.1 trunk modified
vm1_gc_wb_ary* 0.511 0.632 0.532
vm1_gc_wb_ary_promoted* 0.578 0.701 0.674
vm1_gc_wb_obj* 0.419 0.575 0.492
vm1_gc_wb_obj_promoted* 0.537 0.664 0.618
(sec)
Tue Mar 17 18:51:43 2015 Koichi Sasada <[email protected]>
* benchmark/bm_vm1_gc_wb_ary(_promoted).rb: separate fastpath and
slowpath for WB.
Before this change bm_vm1_gc_wb_ary.rb tried to check the performance
for WB slowpath (making a reference from oldobj to newobj). However,
from Ruby 2.2, 3 GCs are needed to promote new objects because
only 3 age objects are promoted objects.
To compare fastpath and slowpath, introduce new "promoted" version
benchmark.
bm_vm1_gc_wb_ary.rb is for fastpath and
bm_vm1_gc_wb_ary_promoted.rb is for slowpath.
* benchmark/bm_vm1_gc_wb_obj(_promoted).rb: ditto.
Tue Mar 17 17:23:11 2015 Nobuyoshi Nakada <[email protected]>
* dir.c (glob_helper): distinguish not-yet-stated and DT_UNKNOWN
by readdir, and traverse recursively for the former. Linux
readdir returns DT_UNKNOWN on some filesystems, e.g., smbfs,
iso9660.
Mon Mar 16 17:43:21 2015 SHIBATA Hiroshi <[email protected]>
* lib/webrick/server.rb: Fix regression bug in WEBrick's
:DoNotReverseLookup config option implementation.
[fix GH-731] Patch by @vais
* test/webrick/test_do_not_reverse_lookup.rb: ditto.
Sat Mar 14 20:05:23 2015 Kazuki Tanaka <[email protected]>
* math.c (math_gamma): optimization for passed small integer.
Sat Mar 14 18:07:23 2015 Kazuki Tanaka <[email protected]>
* enum.c: [DOC] Fixes Enumerable#member? documentation
[fix GH-756][ci skip] Patch by @shamanime
Sat Mar 14 12:23:53 2015 Nobuyoshi Nakada <[email protected]>
* dir.c (glob_helper): use d_type to reduce lstat system calls.
* win32/dir.h (struct direct): add d_type instead of d_isdir and
d_isrep. SYMLINKD is unreliable, since the target can be
replaced after a link was created.
* win32/win32.c (readdir_internal): set d_type.
Sat Mar 14 02:14:50 2015 Nobuyoshi Nakada <[email protected]>
* parse.y (primary): empty parentheses at cmdarg can be null.
[ruby-core:68477] [Bug #10957]
Fri Mar 13 15:04:36 2015 Nobuyoshi Nakada <[email protected]>
* ext/stringio/stringio.c (strio_close): don't raise on double
close for consistent to IO#close.
Fri Mar 13 15:03:20 2015 Nobuyoshi Nakada <[email protected]>
* io.c (rb_io_close_read, rb_io_close_write): don't raise after
close same as IO#close.
Fri Mar 13 12:29:07 2015 Tanaka Akira <[email protected]>
* test/readline/test_readline.rb: Restore environment variables:
COLUMNS LINES
Fri Mar 13 11:37:46 2015 Nobuyoshi Nakada <[email protected]>
* ext/fiddle/extconf.rb: needs --enable-shared when linked to
libruby or fiddle.so. since --with-static-linked-ext does no
longer link extensions to ruby program with --enable-shared, the
only combination needs --enable-static is --disable-shared and
--with-static-linked-ext. [ruby-dev:48901] [Bug #10960]
Fri Mar 13 07:02:20 2015 Eric Wong <[email protected]>
* ext/socket/init.c (rsock_s_accept_nonblock): use rb_hash_lookup2
* ext/openssl/ossl_ssl.c (get_no_exception): new function
(ossl_ssl_accept_nonblock): use get_no_exception
(ossl_ssl_read_internal): ditto
(ossl_ssl_write_nonblock): ditto
[ruby-core:68511]
Fri Mar 13 07:01:38 2015 Eric Wong <[email protected]>
* ext/openssl/ossl_ssl.c: predefine wait_*able symbols
Thu Mar 12 22:59:53 2015 Tanaka Akira <[email protected]>
* test/lib/leakchecker.rb: Check environment variables.
Thu Mar 12 05:54:27 2015 Eric Wong <[email protected]>
* ext/socket/init.c (rsock_s_accept_nonblock):
support exception: false
[ruby-core:66385] [Feature #10532]
* ext/socket/init.c (rsock_init_socket_init): define new symbols
* ext/socket/rubysocket.h: adjust prototype
* ext/socket/socket.c (sock_accept_nonblock): support exception: false
* ext/openssl/ossl_ssl.c (ossl_ssl_accept_nonblock): ditto
* ext/socket/socket.c (Init_socket): adjust accept_nonblock definition
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): ditto
* ext/socket/tcpserver.c (rsock_init_tcpserver): ditto
* ext/socket/unixserver.c (rsock_init_unixserver): ditto
* ext/socket/tcpserver.c (tcp_accept_nonblock): adjust
rsock_s_accept_nonblock call
* ext/socket/unixserver.c (unix_accept_nonblock): ditto
* ext/openssl/ossl_ssl.c (ossl_start_ssl): support no_exception
* ext/openssl/ossl_ssl.c (ossl_ssl_connect): adjust ossl_start_ssl call
* ext/openssl/ossl_ssl.c (ossl_ssl_connect_nonblock): ditto
* ext/openssl/ossl_ssl.c (ossl_ssl_accept): ditto
* test/socket/test_nonblock.rb (test_accept_nonblock): test for
"exception :false"
* test/socket/test_tcp.rb (test_accept_nonblock): new test
* test/socket/test_unix.rb (test_accept_nonblock): ditto
* test/openssl/test_pair.rb (test_accept_nonblock_no_exception): ditto
Thu Mar 12 10:53:06 2015 Koichi Sasada <[email protected]>
* internal.h, node.h: move a definition of `struct rb_global_entry'
and related functions from node.h to internal.h.
* variable.c: remove unused include pragma.
* common.mk: remove unused dependency.
Thu Mar 12 10:32:39 2015 Koichi Sasada <[email protected]>
* common.mk: remove unused dependency.
Thu Mar 12 08:20:14 2015 Koichi Sasada <[email protected]>
* load.c: removed unused header file "node.h".
* method.h: ditto.
* symbol.c: ditto.
Thu Mar 12 08:14:48 2015 Koichi Sasada <[email protected]>
* gc.c: RGENGC_CHECK_MODE should be 0.
Thu Mar 12 07:44:17 2015 Koichi Sasada <[email protected]>
* internal.h: use T_IMEMO to represent `struct MEMO' value.
memo->v1 and memo->v2 is WB protected values.
So use MEMO_V1/V2_SET() macros to set these values.
memo->u3 is ambiguous (sometimes a VALUE, sometimes an integer
value), so use gc_mark_maybe() in gc.c to mark it.
Rename NEW_MEMO() to MEMO_NEW().
Move MEMO_FOR and NEW_MEMO_FOR macros from node.h.
Export a rb_imemo_new() function for ext/ripper.
* node.h: remove NODE_MEMO.
* enum.c: catch up these change.
* enumerator.c: ditto.
* load.c: ditto.
* ext/objspace/objspace.c (count_nodes): ditto.
* gc.c (gc_mark_children): mark imemo_memo type.
* parse.y (new_args_gen): use T_IMEMO.
(I'm not sure it is working correctly...)
Wed Mar 11 22:36:34 2015 Koichi Sasada <[email protected]>
* eval.c (frame_called_id): it should use vm_ifunc type.
* eval.c (frame_func_id): ditto.
Wed Mar 11 22:27:05 2015 Koichi Sasada <[email protected]>
* node.h: remove NODE_IFUNC, NEW_IFUNC.
* internal.h: use T_IMEMO for IFUNC.
rename `struct IFUNC' to `struct vm_ifunc' and move the definition
from vm_insnhelper.h. Add imemo_ifunc.
* gc.c (gc_mark_children): mark imemo_ifunc type T_IMEMO object.
* compile.c: catch up these changes.
* proc.c: ditto.
* vm_core.h (RUBY_VM_IFUNC_P): ditto.
* vm_eval.c (rb_iterate): ditto.
* vm_insnhelper.c: ditto.
* ext/objspace/objspace.c: ditto.
Wed Mar 11 21:53:43 2015 Koichi Sasada <[email protected]>
* internal.h, eval_intern.h: move CREF accessors.
List IMEMO supported types in internal.h.
Wed Mar 11 21:45:36 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.h: use T_IMEMO to create THROW_DATA.
Add THROW_DATA_NEW().
* internal.h: move definition of `struct THROW_DATA'
from vm_insnhelper.h to internal.h.
Rename `THROW_DATA' to `vm_throw_data'.
* eval_intern.h (THROW_DATA_P): move to internal.h.
THROW_DATA is no longer T_NODE, so check T_IMEMO.
* gc.c (gc_mark_children): mark THROW_DATA.
* vm.c: catch up these changes.
* vm_eval.c: ditto.
* vm_insnhelper.c: ditto.
Wed Mar 11 21:21:56 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.c: use T_IMEMO to create SVAR.
* internal.h, vm_insnhelper.h: move definition `struct SVAR'
from vm_insnhelper.h to internal.h. And rename it to struct vm_svar.
new imemo_type imemo_svar is added.
* gc.c (gc_mark_children): mark imemo_svar.
* node.c (rb_gc_mark_node): remove useless marking.
Wed Mar 11 19:35:46 2015 Koichi Sasada <[email protected]>
* include/ruby/ruby.h: introduce new type T_IMEMO.
T_IMEMO is Internal Memo type, internal use only.
T_IMEMO has same purpose of NODE_MEMO.
To insert T_IMEMO, type numbers are modified a little.
* internal.h: define struct RIMemo. Each RIMemo objects
has imemo_type. We can observe it by the imemo_type() function.
* gc.c (rb_imemo_new): added.
* node.h: remove NODE_CREF and NEW_CREF().
* node.c (rb_gc_mark_node): ditto.
* vm.c (vm_cref_new): use rb_imem_new().
* vm_eval.c: ditto.
* vm_insnhelper.c: use RIMemo objects for CREF.
* ext/objspace/objspace.c: support T_IMEMO.
Wed Mar 11 17:03:20 2015 Koichi Sasada <[email protected]>
* gc.c: fix memory leak by prepend method.
It is easy to reproduce with such script:
module M; def bar; end; end
loop{
Class.new do
def foo; end
prepend M
end
}
* gc.c (obj_free): free T_ICLASS::m_tbl if it is created by prepend.
To recognize it, check RICLASS_IS_ORIGIN flag.
* gc.c (gc_mark_children): T_ICLASS objects only need to mark
T_ICLASS::m_tbl if RICLASS_IS_ORIGIN is set.
* gc.c (obj_memsize_of): count T_ICLASS if RICLASS_IS_ORIGIN is set.
* internal.h (RCLASS_SET_ORIGIN): add to set RCLASS_SET_ORIGIN.
TODO: The word `origin' seems not good name. We need to invent
another good name.
* class.c: use RCLASS_SET_ORIGIN().
* class.c (class_alloc): zero clear rb_classext_t.
Wed Mar 11 13:28:49 2015 Nobuyoshi Nakada <[email protected]>
* configure.in: check also procstat_getvmmap, which is not
available on FreeBSD 9. [ruby-core:68468] [Bug #10954]
* vm_dump.c (procstat_vm): use kinfo_getvmmap instead if
procstat_getvmmap is not available.
Wed Mar 11 09:15:21 2015 Koichi Sasada <[email protected]>
* internal.h: define struct MEMO.
* enum.c: use MEMO.
* enumerator.c: ditto.
* load.c: ditto.
* node.h: return (struct MEMO *) pointer.
Wed Mar 11 06:26:21 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.h (THROW_DATA_STATE): return int, not VALUE.
* vm_insnhelper.h (THROW_DATA_STATE_SET): accept int value.
Wed Mar 11 05:06:46 2015 Koichi Sasada <[email protected]>
* vm_eval.c (rb_catch_protect): use THROW_DATA_VAL().
Wed Mar 11 04:56:04 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.h: define struct IFUNC.
* vm_eval.c (rb_iterate): use it.
* vm_insnhelper.c (vm_yield_with_cfunc): ditto.
Wed Mar 11 03:52:12 2015 Koichi Sasada <[email protected]>
* eval_intern.h (THROW_DATA_P): use RB_TYPE_P() instead of
BUILTIN_TYPE().
* thread.c (thread_join): use THROW_DATA_P().
Wed Mar 11 03:48:01 2015 Koichi Sasada <[email protected]>
* proc.c: use RUBY_VM_IFUNC_P() to recognize IFUNC or not.
* vm.c: ditto.
* vm_dump.c: ditto.
* vm_insnhelper.c: ditto.
* vm_core.h (RUBY_VM_IFUNC_P): use RB_TYPE_P() instead of
BUILTIN_TYPE().
Wed Mar 11 03:21:37 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.h: define struct THROW_DATA to represent
throwing data. Also define accessor functions.
* eval_intern.h: move related changes into vm_insnhelper.h.
Now these MACROs (functions) are only used in vm*.c.
There is only THROW_DATA_P(err) to check this data type or not.
* vm.c: catch up these changes.
* vm_eval.c: ditto.
* vm_insnhelper.c: ditto.
Wed Mar 11 00:57:00 2015 Rei Odaira <[email protected]>
* test/rubygems/test_gem_security_trust_dir.rb: The return value of
File::Stat#mode is OS dependent. In AIX, 0200000 is set.
Tue Mar 10 20:03:41 2015 Tanaka Akira <[email protected]>
* lib/webrick/server.rb: Invoke setup_shutdown_pipe in start method
instead of listen method.
[ruby-core:68476] [Bug #10956] Reported by Shintaro Kojima.
Tue Mar 10 17:27:27 2015 Koichi Sasada <[email protected]>
* thread.c (thread_join): Fixnum (except TAG_FATAL) and
NODE should not be reached here.
Mon Mar 9 21:42:10 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.c (ep_cref): rename to lep_cref() because it should be
local ep.
Mon Mar 9 16:34:36 2015 Nobuyoshi Nakada <[email protected]>
* ext/stringio/stringio.c (strio_close): don't raise on double
close for consistent to IO#close.
Mon Mar 09 06:44:48 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.h: define struct SVAR for SVAR.
This data type is also same layout of NODE (NODE_IF).
* vm_insnhelper.c: catch up this change.
Mon Mar 9 06:43:21 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.c (lep_svar_set): add WBs.
Mon Mar 9 06:19:06 2015 Koichi Sasada <[email protected]>
* internal.h: define rb_cref_t and change to use it.
rb_cref_t is data type of CREF. Now, the body is still NODE.
It is easy to understand what is CREF and what is pure NODE.
Mon Mar 9 06:00:37 2015 Koichi Sasada <[email protected]>
* vm_insnhelper.h (COPY_CREF_OMOD): fix translation miss.
Mon Mar 9 04:47:58 2015 Koichi Sasada <[email protected]>
* internal.h: define CREF accessor macros.
* CREF_CLASS(cref)
* CREF_NEXT(cref)
* CREF_VISI(cref)
* CREF_VISI_SET(cref, v)
* CREF_REFINEMENTS(cref)
* CREF_PUSHED_BY_EVAL(cref)
* CREF_PUSHED_BY_EVAL_SET(cref)
* CREF_OMOD_SHARED(cref)
* CREF_OMOD_SHARED_SET(cref)
* CREF_OMOD_SHARED_UNSET(cref)
This is process to change CREF data type from NODE.
Sun Mar 8 22:50:57 2015 Tanaka Akira <[email protected]>
* ext/zlib/zlib.c (rb_gzfile_close): Don't raise on double
close for consistent to IO#close.
Sun Mar 8 16:57:35 2015 Nobuyoshi Nakada <[email protected]>
* dir.c (glob_helper): match patterns against legacy short names
too, not only ordinary names. [ruby-core:67954] [Bug #10819]
* win32/dir.h (struct direct): add short name members.
* win32/win32.c (opendir_internal, readdir_internal): ditto.
Sat Mar 7 09:36:05 2015 SHIBATA Hiroshi <[email protected]>
* array.c: document that first element is kept when using
Array#uniq and #uniq! [fix GH-845][ci skip]
Patch by @riffraff
Sat Mar 7 09:28:02 2015 SHIBATA Hiroshi <[email protected]>
* thread.c: Mutex#owned? is no longer experimental since 2.1.0
[fix GH-839][ci skip] Patch by @takiy33
Sat Mar 7 09:18:42 2015 SHIBATA Hiroshi <[email protected]>
* tool/merger.rb: Added documentation to version method.
[fix GH-847][ci skip] Patch by @magikid
Fri Mar 6 22:50:36 2015 Koichi Sasada <[email protected]>
* class.c (rb_prepend_module): need a WB for klass -> origin.
Fri Mar 6 20:18:38 2015 Koichi Sasada <[email protected]>
* fix namespace issue on singleton class expressions. [Bug #10943]
* vm_core.h, method.h: remove rb_iseq_t::cref_stack. CREF is stored
to rb_method_definition_t::body.iseq_body.cref.
* vm_insnhelper.c: modify SVAR usage.
When calling ISEQ type method, push CREF information onto method
frame, SVAR located place. Before this fix, SVAR is simply nil.
After this patch, CREF (or NULL == Qfalse for not iseq methods)
is stored at the method invocation.
When SVAR is required, then put NODE_IF onto SVAR location,
and NDOE_IF::nd_reserved points CREF itself.
* vm.c (vm_cref_new, vm_cref_dump, vm_cref_new_toplevel): added.
* vm_insnhelper.c (vm_push_frame): accept CREF.
* method.h, vm_method.c (rb_add_method_iseq): added. This function
accepts iseq and CREF.
* class.c (clone_method): use rb_add_method_iseq().
* gc.c (mark_method_entry): mark method_entry::body.iseq_body.cref.
* iseq.c: remove CREF related codes.
* insns.def (getinlinecache/setinlinecache): CREF should be cache key
because a different CREF has a different namespace.
* node.c (rb_gc_mark_node): mark NODE_IF::nd_reserved for SVAR.
* proc.c: catch up changes.
* struct.c: ditto.
* insns.def: ditto.
* vm_args.c (raise_argument_error): ditto.
* vm_eval.c: ditto.
* test/ruby/test_class.rb: add a test.