Commit 6d1b61f
committed
Internalize and threadsafetify String#unicode_normalize
In CRuby, this code was moved into C in 2017 and the .rb file was
removed shortly after (released in Ruby 2.5.0).
This patch does the following:
* Move the script into the JRuby jar so it can be loaded as part of
our boot logic.
* Fix the race to load UnicodeNormalize by removing the constant
definition check and restoring the method redefinition (see
#9231).
Fixes #9231 and relates to #6362.1 parent de4ee7e commit 6d1b61f
5 files changed
Lines changed: 28 additions & 86 deletions
File tree
- core/src/main/ruby/jruby
- kernel
- lib/ruby/stdlib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
This file was deleted.
0 commit comments