follow CRuby r44453,r44502

https://bugs.ruby-lang.org/issues/7688