see more details here https://github.com/jruby/jruby/commit/5a7bd3f3795c73e9928522635d74734655f3cd2f#commitcomment-14555449