Skip to content

Commit a4a98af

Browse files
committed
Merge branch 'master-2.6' into dist/2.6/buster
2 parents cd78695 + ec114a1 commit a4a98af

File tree

132 files changed

+3004
-2203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+3004
-2203
lines changed

ChangeLog

Lines changed: 436 additions & 2 deletions
Large diffs are not rendered by default.

cont.c

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
cont.c -
44
5-
$Author: samuel $
5+
$Author: nagachika $
66
created at: Thu May 23 09:03:43 2007
77
88
Copyright (C) 2007 Koichi Sasada
@@ -626,6 +626,15 @@ cont_save_thread(rb_context_t *cont, rb_thread_t *th)
626626
#endif
627627
}
628628

629+
static void
630+
cont_init_mjit_cont(rb_context_t *cont)
631+
{
632+
VM_ASSERT(cont->mjit_cont == NULL);
633+
if (mjit_enabled) {
634+
cont->mjit_cont = mjit_cont_new(&(cont->saved_ec));
635+
}
636+
}
637+
629638
static void
630639
cont_init(rb_context_t *cont, rb_thread_t *th)
631640
{
@@ -635,9 +644,7 @@ cont_init(rb_context_t *cont, rb_thread_t *th)
635644
cont->saved_ec.local_storage = NULL;
636645
cont->saved_ec.local_storage_recursive_hash = Qnil;
637646
cont->saved_ec.local_storage_recursive_hash_for_trace = Qnil;
638-
if (mjit_enabled) {
639-
cont->mjit_cont = mjit_cont_new(&cont->saved_ec);
640-
}
647+
cont_init_mjit_cont(cont);
641648
}
642649

643650
static rb_context_t *
@@ -654,6 +661,14 @@ cont_new(VALUE klass)
654661
return cont;
655662
}
656663

664+
void
665+
rb_fiber_init_mjit_cont(struct rb_fiber_struct *fiber)
666+
{
667+
// Currently this function is meant for root_fiber. Others go through cont_new.
668+
// XXX: Is this mjit_cont `mjit_cont_free`d?
669+
cont_init_mjit_cont(&fiber->cont);
670+
}
671+
657672
#if 0
658673
void
659674
show_vm_stack(const rb_execution_context_t *ec)

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
ruby2.6 (2.6.6-0nkmi1~dist) unstable; urgency=medium
2+
3+
* 2.6.6
4+
* fix sysconfdir and etc
5+
6+
-- Sorah Fukumori <[email protected]> Tue, 31 Mar 2020 17:11:05 +0000
7+
18
ruby2.6 (2.6.5-0nkmi1~dist) unstable; urgency=medium
29

310
* 2.6.5

debian/rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ configure_options += --enable-install-static-library
3030
configure_options += --disable-rpath
3131
configure_options += --with-sitedir='/usr/local/lib/site_ruby'
3232
configure_options += --with-sitearchdir="/usr/local/lib/$(DEB_HOST_MULTIARCH)/site_ruby"
33+
configure_options += --runstatedir=/var/run
34+
configure_options += --localstatedir=/var
35+
configure_options += --sysconfdir=/etc
3336

3437
ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
3538
# Cross-building. This is the same logic that debhelper's

enum.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
enum.c -
44
5-
$Author: nobu $
5+
$Author: nagachika $
66
created at: Fri Oct 1 15:15:19 JST 1993
77
88
Copyright (C) 1993-2007 Yukihiro Matsumoto
@@ -2337,14 +2337,20 @@ static VALUE
23372337
enum_reverse_each(int argc, VALUE *argv, VALUE obj)
23382338
{
23392339
VALUE ary;
2340-
long i;
2340+
long len;
23412341

23422342
RETURN_SIZED_ENUMERATOR(obj, argc, argv, enum_size);
23432343

23442344
ary = enum_to_a(argc, argv, obj);
23452345

2346-
for (i = RARRAY_LEN(ary); --i >= 0; ) {
2347-
rb_yield(RARRAY_AREF(ary, i));
2346+
len = RARRAY_LEN(ary);
2347+
while (len--) {
2348+
long nlen;
2349+
rb_yield(RARRAY_AREF(ary, len));
2350+
nlen = RARRAY_LEN(ary);
2351+
if (nlen < len) {
2352+
len = nlen;
2353+
}
23482354
}
23492355

23502356
return obj;

ext/-test-/file/fs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ get_noatime_p(VALUE self, VALUE str)
8989
rb_sys_fail_str(str);
9090
}
9191
# ifdef HAVE_STRUCT_STATFS_F_FLAGS
92+
# ifdef MNT_STRICTATIME
93+
if (!(st.f_flags & MNT_STRICTATIME)) return Qtrue;
94+
# endif
9295
# ifdef MNT_NOATIME
9396
return st.f_flags & MNT_NOATIME ? Qtrue : Qfalse;
9497
# elif defined(ST_NOATIME)

ext/fiddle/extlibs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
http://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz \
1+
https://ftp.osuosl.org/pub/blfs/conglomeration/libffi/libffi-3.2.1.tar.gz \
22
md5:83b89587607e3eb65c70d361f13bab43 \
33
sha512:980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 \
44
#

ext/json/parser/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
18351835
} else {
18361836
json->max_nesting = 100;
18371837
json->allow_nan = 0;
1838-
json->create_additions = 1;
1838+
json->create_additions = 0;
18391839
json->create_id = rb_funcall(mJSON, i_create_id, 0);
18401840
json->object_class = Qnil;
18411841
json->array_class = Qnil;

ext/json/parser/parser.rl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
730730
} else {
731731
json->max_nesting = 100;
732732
json->allow_nan = 0;
733-
json->create_additions = 1;
733+
json->create_additions = 0;
734734
json->create_id = rb_funcall(mJSON, i_create_id, 0);
735735
json->object_class = Qnil;
736736
json->array_class = Qnil;

ext/openssl/ossl_asn1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ do{\
18241824
rb_define_method(cASN1EndOfContent, "to_der", ossl_asn1eoc_to_der, 0);
18251825

18261826
class_tag_map = rb_hash_new();
1827-
rb_global_variable(&class_tag_map);
1827+
rb_gc_register_mark_object(class_tag_map);
18281828
rb_hash_aset(class_tag_map, cASN1EndOfContent, INT2NUM(V_ASN1_EOC));
18291829
rb_hash_aset(class_tag_map, cASN1Boolean, INT2NUM(V_ASN1_BOOLEAN));
18301830
rb_hash_aset(class_tag_map, cASN1Integer, INT2NUM(V_ASN1_INTEGER));

0 commit comments

Comments
 (0)