Project

General

Profile

Bug #11433

Backport r51532 (rb_ary_repeated_permutation: fix buffer size)

Added by nagachika (Tomoyuki Chikanaga) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:<unknown>]

Description

This is a ticket for backport management.

r51532 fixed unnessesary large memory allocation in Array#repeated_permutation in trunk.

Associated revisions

Revision f2edb94e
Added by nagachika (Tomoyuki Chikanaga) over 4 years ago

merge revision(s) 51532: [Backport #11433]

    * array.c (rb_ary_repeated_permutation): fix buffer size, ALLOCV_N
      already multiplies element size.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 51535
Added by nagachika (Tomoyuki Chikanaga) over 4 years ago

merge revision(s) 51532: [Backport #11433]

* array.c (rb_ary_repeated_permutation): fix buffer size, ALLOCV_N
  already multiplies element size.

History

#1

Updated by nagachika (Tomoyuki Chikanaga) over 4 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONE

Backported into ruby_2_2 branch at r51535.

#2

Updated by usa (Usaku NAKAMURA) over 4 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

Also available in: Atom PDF