mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
merge revision(s) r44731,r44751: [Backport #8978]
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value. [ruby-core:57599] [Bug #8978]. Thanks mame! * ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value. [ruby-core:57599] [Bug #8978]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
89424b13b0
commit
b5c309df52
3 changed files with 13 additions and 3 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Mon Feb 17 01:12:57 2014 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
|
||||
[ruby-core:57599] [Bug #8978].
|
||||
|
||||
Mon Feb 17 01:12:57 2014 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
|
||||
[ruby-core:57599] [Bug #8978]. Thanks mame!
|
||||
|
||||
Mon Feb 17 01:09:52 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* benchmark/driver: avoid large alloc in driver process
|
||||
|
|
|
@ -21,7 +21,7 @@ dealloc(void * ptr)
|
|||
#ifndef DONT_USE_FFI_CLOSURE_ALLOC
|
||||
ffi_closure_free(cls->pcl);
|
||||
#else
|
||||
munmap(cls->pcl, sizeof(cls->pcl));
|
||||
munmap(cls->pcl, sizeof(*cls->pcl));
|
||||
#endif
|
||||
if (cls->argv) xfree(cls->argv);
|
||||
xfree(cls);
|
||||
|
@ -228,7 +228,7 @@ initialize(int rbargc, VALUE argv[], VALUE self)
|
|||
#else
|
||||
result = ffi_prep_closure(pcl, cif, callback, (void *)self);
|
||||
cl->code = (void *)pcl;
|
||||
i = mprotect(pcl, sizeof(pcl), PROT_READ | PROT_EXEC);
|
||||
i = mprotect(pcl, sizeof(*pcl), PROT_READ | PROT_EXEC);
|
||||
if (i) {
|
||||
rb_sys_fail("mprotect");
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define RUBY_VERSION "2.0.0"
|
||||
#define RUBY_RELEASE_DATE "2014-02-17"
|
||||
#define RUBY_PATCHLEVEL 426
|
||||
#define RUBY_PATCHLEVEL 427
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2014
|
||||
#define RUBY_RELEASE_MONTH 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue