Skip to content

Commit f201642

Browse files
committed
merge revision(s) 50685: [Backport ruby#11198]
* ext/socket/ancdata.c: use RB_GC_GUARD instead of volatile [ruby-core:69419] [Feature ruby#11198] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@50809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 7d7ed2c commit f201642

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Tue Jun 9 16:29:49 2015 Eric Wong <e@80x24.org>
2+
3+
* ext/socket/ancdata.c: use RB_GC_GUARD instead of volatile
4+
[ruby-core:69419] [Feature #11198]
5+
16
Tue Jun 9 16:26:48 2015 Eric Wong <e@80x24.org>
27

38
* ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode,

ext/socket/ancdata.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
11331133
struct msghdr mh;
11341134
struct iovec iov;
11351135
#if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
1136-
volatile VALUE controls_str = 0;
1136+
VALUE controls_str = 0;
11371137
VALUE *controls_ptr = NULL;
11381138
int family;
11391139
#endif
@@ -1289,6 +1289,9 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
12891289
rb_readwrite_sys_fail(RB_IO_WAIT_WRITABLE, "sendmsg(2) would block");
12901290
rb_sys_fail("sendmsg(2)");
12911291
}
1292+
#if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
1293+
RB_GC_GUARD(controls_str);
1294+
#endif
12921295

12931296
return SSIZET2NUM(ss);
12941297
}

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.7"
22
#define RUBY_RELEASE_DATE "2015-06-09"
3-
#define RUBY_PATCHLEVEL 365
3+
#define RUBY_PATCHLEVEL 366
44

55
#define RUBY_RELEASE_YEAR 2015
66
#define RUBY_RELEASE_MONTH 6

0 commit comments

Comments
 (0)