Skip to content

Commit add84d1

Browse files
committed
Merge branch 'master-2.6' into dist/2.6/xenial
2 parents 1bb2645 + ec114a1 commit add84d1

File tree

136 files changed

+3010
-2207
lines changed

Some content is hidden

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

136 files changed

+3010
-2207
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/Dockerfile.bionic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM ubuntu:18.04
33

44
# just to invalidate cache
5-
ENV NKMIBUILDREV=1
5+
ARG BUILDDATE=99999999
66

77
ENV DEBIAN_FRONTEND=noninteractive
88
RUN mkdir -p /build \

debian/Dockerfile.buster

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
FROM debian:buster
33

44
# just to invalidate cache
5-
ENV NKMIBUILDREV=1
5+
ARG BUILDDATE=99999999
66

7+
ENV DEBIAN_FRONTEND=noninteractive
78
RUN mkdir -p /build \
89
&& apt-get update \
910
&& apt-get install -y debhelper dh-make devscripts gnupg2 vim equivs

debian/Dockerfile.stretch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
FROM debian:stretch
33

44
# just to invalidate cache
5-
ENV NKMIBUILDREV=1
5+
ARG BUILDDATE=99999999
66

7+
ENV DEBIAN_FRONTEND=noninteractive
78
RUN mkdir -p /build \
89
&& apt-get update \
910
&& apt-get install -y debhelper dh-make devscripts gnupg2 vim equivs

debian/Dockerfile.xenial

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM ubuntu:16.04
33

44
# just to invalidate cache
5-
ENV NKMIBUILDREV=1
5+
ARG BUILDDATE=99999999
66

77
RUN mkdir -p /build \
88
&& apt-get update \

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)

0 commit comments

Comments
 (0)