зеркало из https://github.com/github/ruby.git
* gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5f1284ca8d
Коммит
fec2c12c29
|
@ -1,3 +1,7 @@
|
|||
Tue Feb 19 18:34:32 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857]
|
||||
|
||||
Tue Feb 19 14:27:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/readline/readline.c (readline_event): prevent polling. based on
|
||||
|
|
4
gc.c
4
gc.c
|
@ -574,9 +574,7 @@ rb_data_object_alloc(VALUE klass, void *datap, RUBY_DATA_FUNC dmark, RUBY_DATA_F
|
|||
#define STACK_END (th->machine_stack_end)
|
||||
#define STACK_LEVEL_MAX (th->machine_stack_maxsize/sizeof(VALUE))
|
||||
|
||||
#if defined(sparc) || defined(__sparc__)
|
||||
# define STACK_LENGTH (STACK_START - STACK_END + 0x80)
|
||||
#elif STACK_GROW_DIRECTION < 0
|
||||
#if STACK_GROW_DIRECTION < 0
|
||||
# define STACK_LENGTH (STACK_START - STACK_END)
|
||||
#elif STACK_GROW_DIRECTION > 0
|
||||
# define STACK_LENGTH (STACK_END - STACK_START + 1)
|
||||
|
|
Загрузка…
Ссылка в новой задаче