mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
T_HASH is no longer on transient heap
This commit is contained in:
parent
d62ae18797
commit
4847b7ac28
1 changed files with 1 additions and 2 deletions
|
@ -374,8 +374,7 @@ rb_transient_heap_alloc(VALUE obj, size_t req_size)
|
|||
|
||||
TH_ASSERT(RB_TYPE_P(obj, T_ARRAY) ||
|
||||
RB_TYPE_P(obj, T_OBJECT) ||
|
||||
RB_TYPE_P(obj, T_STRUCT) ||
|
||||
RB_TYPE_P(obj, T_HASH)); /* supported types */
|
||||
RB_TYPE_P(obj, T_STRUCT)); /* supported types */
|
||||
|
||||
if (size > TRANSIENT_HEAP_ALLOC_MAX) {
|
||||
if (TRANSIENT_HEAP_DEBUG >= 3) fprintf(stderr, "rb_transient_heap_alloc: [too big: %ld] %s\n", (long)size, rb_obj_info(obj));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue