[#97536] [Ruby master Bug#16694] JIT vs hardened GCC with PCH — v.ondruch@...
Issue #16694 has been reported by vo.x (Vit Ondruch).
11 messages
2020/03/18
[ruby-core:97502] [Ruby master Bug#16664] Backport request: MJIT unloads methods used in a main thread when calling a Fiber
From:
naruse@...
Date:
2020-03-15 10:30:35 UTC
List:
ruby-core #97502
Issue #16664 has been updated by naruse (Yui NARUSE).
Backport changed from 2.5: DONTNEED, 2.6: REQUIRED, 2.7: REQUIRED to 2.5: DONTNEED, 2.6: REQUIRED, 2.7: DONE
ruby_2_7 f915d4ff33450975cc3a7a70d0dc4dd2bf4cfed1.
----------------------------------------
Bug #16664: Backport request: MJIT unloads methods used in a main thread when calling a Fiber
https://bugs.ruby-lang.org/issues/16664#change-84651
* Author: k0kubun (Takashi Kokubun)
* Status: Closed
* Priority: Normal
* Backport: 2.5: DONTNEED, 2.6: REQUIRED, 2.7: DONE
----------------------------------------
## Problem
The following script SEGVs with `ruby --disable-gems --jit-min-calls=1 --jit-max-cache=10 --jit-wait script.rb`.
```ruby
def a1() a2(false); a2(true) end
def a2(a) a3(a) end
def a3(a) a4(a) end
def a4(a) a5(a) end
def a5(a) a6(a) end
def a6(a) a7(a) end
def a7(a) a8(a) end
def a8(a) a9(a) end
def a9(a) a10(a) end
def a10(a)
if a
Fiber.new { a11 }.resume
end
end
def a11() print('hello') end
a1
```
## Patch
Please backport commit:adcf0316d1ecedae2a9157ad941550e0c0fb510b. For running the test, commit:a8dcab723316997d9e01c89d6df969edce75bdca needs to be backported first.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>