зеркало из https://github.com/github/ruby.git
* parse.y (rb_intern3): check symbol table overflow before generate
next id. [ruby-core:26092] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
37531934e6
Коммит
e5e49b3a27
|
@ -1,7 +1,7 @@
|
|||
Thu Oct 15 16:57:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Oct 15 18:26:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (rb_intern3): check symbol table overflow.
|
||||
[ruby-core:26092]
|
||||
* parse.y (rb_intern3): check symbol table overflow before generate
|
||||
next id. [ruby-core:26092]
|
||||
|
||||
Thu Oct 15 15:14:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
|
|
2
parse.y
2
parse.y
|
@ -9498,7 +9498,7 @@ rb_intern3(const char *name, long len, rb_encoding *enc)
|
|||
mbstr:;
|
||||
}
|
||||
new_id:
|
||||
if (!(global_symbols.last_id << (ID_SCOPE_SHIFT+RUBY_SPECIAL_SHIFT))) {
|
||||
if (global_symbols.last_id >= ~(ID)0 >> (ID_SCOPE_SHIFT+RUBY_SPECIAL_SHIFT)) {
|
||||
if (len > 20) {
|
||||
rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %.20s...)",
|
||||
name);
|
||||
|
|
Загрузка…
Ссылка в новой задаче