mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (STACK_LEVEL_MAX, ruby_stack_length): returns size_t.
[ruby-core:18207] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6662af65e3
commit
363cad3261
5 changed files with 12 additions and 9 deletions
|
@ -1,4 +1,7 @@
|
|||
Sun Aug 10 08:15:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sun Aug 10 08:56:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* gc.c (STACK_LEVEL_MAX, ruby_stack_length): returns size_t.
|
||||
[ruby-core:18207]
|
||||
|
||||
* configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),
|
||||
ext/digest/md5/md5.c, ext/openssl/ossl.c (main),
|
||||
|
|
2
eval.c
2
eval.c
|
@ -10548,7 +10548,7 @@ rb_thread_save_context(th)
|
|||
rb_thread_t th;
|
||||
{
|
||||
VALUE *pos;
|
||||
int len;
|
||||
size_t len;
|
||||
static VALUE tval;
|
||||
|
||||
len = ruby_stack_length(&pos);
|
||||
|
|
4
gc.c
4
gc.c
|
@ -490,7 +490,7 @@ unsigned int _stacksize = 262144;
|
|||
# define STACK_LEVEL_MAX (_stacksize - 4096)
|
||||
# undef HAVE_GETRLIMIT
|
||||
#elif defined(HAVE_GETRLIMIT) || defined(_WIN32)
|
||||
static unsigned int STACK_LEVEL_MAX = 655300;
|
||||
static size_t STACK_LEVEL_MAX = 655300;
|
||||
#else
|
||||
# define STACK_LEVEL_MAX 655300
|
||||
#endif
|
||||
|
@ -549,7 +549,7 @@ stack_grow_direction(addr)
|
|||
(ret) = (STACK_LENGTH > STACK_LEVEL_MAX - GC_WATER_MARK);\
|
||||
} while (0)
|
||||
|
||||
int
|
||||
size_t
|
||||
ruby_stack_length(p)
|
||||
VALUE **p;
|
||||
{
|
||||
|
|
2
intern.h
2
intern.h
|
@ -251,7 +251,7 @@ VALUE rb_file_directory_p _((VALUE,VALUE));
|
|||
/* gc.c */
|
||||
NORETURN(void rb_memerror __((void)));
|
||||
int ruby_stack_check _((void));
|
||||
int ruby_stack_length _((VALUE**));
|
||||
size_t ruby_stack_length _((VALUE**));
|
||||
int rb_during_gc _((void));
|
||||
char *rb_source_filename _((const char*));
|
||||
void rb_gc_mark_locations _((VALUE*, VALUE*));
|
||||
|
|
8
node.h
8
node.h
|
@ -409,13 +409,13 @@ struct rb_thread {
|
|||
|
||||
VALUE result;
|
||||
|
||||
long stk_len;
|
||||
long stk_max;
|
||||
size_t stk_len;
|
||||
size_t stk_max;
|
||||
VALUE *stk_ptr;
|
||||
VALUE *stk_pos;
|
||||
#ifdef __ia64
|
||||
long bstr_len;
|
||||
long bstr_max;
|
||||
size_t bstr_len;
|
||||
size_t bstr_max;
|
||||
VALUE *bstr_ptr;
|
||||
VALUE *bstr_pos;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue