Skip to content

Commit

Permalink
T_HASH is no longer on transient heap
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed May 26, 2023
1 parent d62ae18 commit 4847b7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions transient_heap.c
Expand Up @@ -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));
Expand Down

0 comments on commit 4847b7a

Please sign in to comment.