diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-20 05:45:56 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-20 05:45:56 +0000 |
commit | b79899b56a9ebadf5c493c4df2419ebf63934381 (patch) | |
tree | 1c2764d0ed23714dbc8d4395fffa70baa4233c70 /mjit.c | |
parent | 4bd4d4e4cfd164f767e88f844cf10b06faee14b9 (diff) | |
download | ruby-b79899b56a9ebadf5c493c4df2419ebf63934381.tar.gz |
Revert "Skip ISeq reference for stale_units for debugging"
This reverts commit 4bd4d4e4cfd164f767e88f844cf10b06faee14b9.
Sorry, let me test another one first
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -174,21 +174,7 @@ free_list(struct rb_mjit_unit_list *list, bool close_handle_p) list_for_each_safe(&list->head, unit, next, unode) { list_del(&unit->unode); if (!close_handle_p) unit->handle = NULL; /* Skip dlclose in free_unit() */ - - if (list == &stale_units) { // `free_unit(unit)` crashes after GC.compact on `stale_units` - /* - * TODO: REVERT THIS BRANCH - * Debug the crash on stale_units w/ GC.compact and just use `free_unit(unit)`!! - */ - if (unit->handle && dlclose(unit->handle)) { - mjit_warning("failed to close handle for u%d: %s", unit->id, dlerror()); - } - clean_object_files(unit); - free(unit); - } - else { - free_unit(unit); - } + free_unit(unit); } list->length = 0; } |