From: normalperson@... Date: 2017-10-10T19:15:42+00:00 Subject: [ruby-core:83200] [Ruby trunk Feature#13996] [PATCH] file.c: apply2files releases GVL Issue #13996 has been reported by normalperson (Eric Wong). ---------------------------------------- Feature #13996: [PATCH] file.c: apply2files releases GVL https://bugs.ruby-lang.org/issues/13996 * Author: normalperson (Eric Wong) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- This means File.chmod, File.lchmod, File.chown, File.lchown, File.unlink, and File.utime operations on slow filesystems no longer hold up other threads. The platform-specific utime_failed changes is compile-tested using a new UTIME_EINVAL macro * file.c (UTIME_EINVAL): new macro to ease compile-testing * file.c (struct apply_arg): new struct * file.c (no_gvl_apply2files): new function * file.c (apply2files): release GVL * file.c (chmod_internal): adjust for apply2files changes * file.c (lchmod_internal): ditto * file.c (chown_internal): ditto * file.c (lchown_internal): ditto * file.c (utime_failed): ditto * file.c (utime_internal): ditto * file.c (unlink_internal): ditto ---Files-------------------------------- 0001-file.c-apply2files-releases-GVL.patch (7.65 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: