зеркало из https://github.com/github/ruby.git
* thread_pthread.c: rlimit is only available on Linux.
At least r44712 breaks FreeBSD. [ruby-core:60113] [Bug #9454] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fa4af4d4cd
Коммит
239c994243
|
@ -1,3 +1,9 @@
|
|||
Tue Jan 28 15:27:36 2014 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* thread_pthread.c: rlimit is only available on Linux.
|
||||
At least r44712 breaks FreeBSD.
|
||||
[ruby-core:60113] [Bug #9454]
|
||||
|
||||
Tue Jan 28 15:17:59 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* lib/set.rb: [DOC] Add examples for Set#intersect? and Set#disjoint?
|
||||
|
|
|
@ -1562,7 +1562,7 @@ ruby_stack_overflowed_p(const rb_thread_t *th, const void *addr)
|
|||
|
||||
if (th) {
|
||||
size = th->machine.stack_maxsize;
|
||||
#if defined(HAVE_GETRLIMIT) && MAINSTACKADDR_AVAILABLE
|
||||
#if defined(HAVE_GETRLIMIT) && defined(__linux__) && MAINSTACKADDR_AVAILABLE
|
||||
if (pthread_equal(th->thread_id, native_main_thread.id)) {
|
||||
struct rlimit rlim;
|
||||
if (getrlimit(RLIMIT_STACK, &rlim) == 0 && rlim.rlim_cur > size) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче