aboutsummaryrefslogtreecommitdiffstats
path: root/transient_heap.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-19 15:59:25 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-05-17 09:19:40 -0400
commit5199f2aaf9527c97e6ec371e19748d0c2ac7a70e (patch)
tree752910a6360dbd7f00af1e665e17238cbce96c17 /transient_heap.c
parent264ba0f89a52c6d0d6425da0cdfb12bbd420c619 (diff)
downloadruby-5199f2aaf9527c97e6ec371e19748d0c2ac7a70e.tar.gz
Implement Hash AR tables on VWA
Diffstat (limited to 'transient_heap.c')
-rw-r--r--transient_heap.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/transient_heap.c b/transient_heap.c
index 2340df4912..a3bf14fe0b 100644
--- a/transient_heap.c
+++ b/transient_heap.c
@@ -10,7 +10,6 @@
#include "internal.h"
#include "internal/array.h"
#include "internal/gc.h"
-#include "internal/hash.h"
#include "internal/sanitizers.h"
#include "internal/static_assert.h"
#include "internal/struct.h"
@@ -607,15 +606,6 @@ transient_heap_ptr(VALUE obj, int error)
ptr = rb_struct_const_heap_ptr(obj);
}
break;
- case T_HASH:
- if (RHASH_TRANSIENT_P(obj)) {
- TH_ASSERT(RHASH_AR_TABLE_P(obj));
- ptr = (VALUE *)(RHASH(obj)->as.ar);
- }
- else {
- ptr = NULL;
- }
- break;
default:
if (error) {
rb_bug("transient_heap_ptr: unknown obj %s\n", rb_obj_info(obj));
@@ -736,9 +726,6 @@ transient_heap_block_evacuate(struct transient_heap* theap, struct transient_hea
case T_STRUCT:
rb_struct_transient_heap_evacuate(obj, !TRANSIENT_HEAP_DEBUG_DONT_PROMOTE);
break;
- case T_HASH:
- rb_hash_transient_heap_evacuate(obj, !TRANSIENT_HEAP_DEBUG_DONT_PROMOTE);
- break;
default:
rb_bug("unsupported: %s\n", rb_obj_info(obj));
}