mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Add assertions when inline caches are copied to MJIT"
This reverts commit6cb6d5abc3
. This reverts commit1484b786ae
. I think we don't need these assertions anymore. I believe the problem is solved byabf678a439
This commit is contained in:
parent
abf678a439
commit
9a6720a15d
1 changed files with 0 additions and 11 deletions
|
@ -1261,17 +1261,6 @@ mjit_capture_cc_entries(const struct rb_iseq_constant_body *compiled_iseq, const
|
|||
// Capture cc to cc_enties
|
||||
for (unsigned int i = 0; i < captured_iseq->ci_size; i++) {
|
||||
cc_entries[i] = captured_iseq->call_data[i].cc;
|
||||
|
||||
// Adding assertions to debug GC problem.
|
||||
// FIXME: remove these when we find it
|
||||
const struct rb_callcache *cc = cc_entries[i];
|
||||
|
||||
if (cc && vm_cc_markable(cc)) {
|
||||
assert(BUILTIN_TYPE((VALUE)cc) != T_MOVED);
|
||||
assert(BUILTIN_TYPE((VALUE)vm_cc_cme(cc)) != T_MOVED);
|
||||
assert(!rb_objspace_garbage_object_p((VALUE)cc));
|
||||
assert(!rb_objspace_garbage_object_p((VALUE)vm_cc_cme(cc)));
|
||||
}
|
||||
}
|
||||
|
||||
return cc_entries_index;
|
||||
|
|
Loading…
Reference in a new issue