Project

General

Profile

Bug #7383

Use stricter cache check in load.c

Added by funny_falcon (Yura Sokolov) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2012-11-18 trunk 37708) [x86_64-linux]
Backport:
[ruby-core:49518]

Description

rb_ary_shared_with_p does not react when #shift or #pop is called on original array.

This patch introduce rb_ary_dup_of_p , which makes more adequate check for duplicate
of array.

https://github.com/ruby/ruby/pull/216
https://github.com/ruby/ruby/pull/216.patch


Files

0001-Fix-cache-validity-check-of-require.patch (2.57 KB) 0001-Fix-cache-validity-check-of-require.patch h.shirosaki (Hiroshi Shirosaki), 11/19/2012 10:55 PM

Also available in: Atom PDF