For Bug #7629 (https://bugs.ruby-lang.org/issues/7629)