mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
thread_pthread.c: get current main thread stack size
* thread_pthread.c: get current main thread stack size, which may be expanded than allocated size at initialization, by rlimit(). [ruby-core:60113] [Bug #9454] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4f63c763ad
commit
60e85501f2
3 changed files with 30 additions and 0 deletions
|
@ -488,6 +488,16 @@ end.join
|
|||
rescue SystemStackError
|
||||
end
|
||||
|
||||
def test_machine_stackoverflow_by_define_method
|
||||
bug9454 = '[ruby-core:60113] [Bug #9454]'
|
||||
assert_separately([], <<-SRC)
|
||||
assert_raise(SystemStackError, #{bug9454.dump}) {
|
||||
define_method(:foo) {self.foo}
|
||||
self.foo
|
||||
}
|
||||
SRC
|
||||
end
|
||||
|
||||
def test_cause
|
||||
msg = "[Feature #8257]"
|
||||
cause = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue