diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-31 16:34:07 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-31 16:34:07 +0000 |
| commit | 9c2a7a68e3ddd0b38397c16470c6811e1a8f7307 (patch) | |
| tree | ad6b659f1fdca8a51ed582cf806ab88d169364a1 | |
| parent | 8b61de8dafacdfb1b7627ccc2a18e4069a6b8e23 (diff) | |
| download | ruby-9c2a7a68e3ddd0b38397c16470c6811e1a8f7307.tar.gz ruby-9c2a7a68e3ddd0b38397c16470c6811e1a8f7307.tar.xz ruby-9c2a7a68e3ddd0b38397c16470c6811e1a8f7307.zip | |
* gc.c (Init_stack): IA64 requires STACK_LEVEL_MAX to be less than
magic number when optimizer turned on, regardless of rlimit
values.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | doc/irb/irb.rd | 2 | ||||
| -rw-r--r-- | doc/irb/irb.rd.ja | 6 | ||||
| -rw-r--r-- | gc.c | 8 |
4 files changed, 18 insertions, 4 deletions
@@ -1,3 +1,9 @@ +Fri Aug 1 00:52:58 2003 Yukihiro Matsumoto <matz@ruby-lang.org> + + * gc.c (Init_stack): IA64 requires STACK_LEVEL_MAX to be less than + magic number when optimizer turned on, regardless of rlimit + values. + Thu Jul 31 23:44:00 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp> * lib/erb.rb: import erb-2.0.4b4. diff --git a/doc/irb/irb.rd b/doc/irb/irb.rd index c1ac36791..a42cd4668 100644 --- a/doc/irb/irb.rd +++ b/doc/irb/irb.rd @@ -221,7 +221,7 @@ For irb commands, both simple name and `irb_'-prefixed name are prepared. Whether readline is used or not. true: uses false: doen't use - nil: intends to use readline except for inf-reuby-mode (default) + nil: intends to use readline except for inf-ruby-mode (default) # #--- conf.verbose=T/F # Whether verbose messages are display or not. diff --git a/doc/irb/irb.rd.ja b/doc/irb/irb.rd.ja index 7e80c7fc6..bf8ac5d51 100644 --- a/doc/irb/irb.rd.ja +++ b/doc/irb/irb.rd.ja @@ -53,7 +53,7 @@ irbの使い方は, Rubyさえ知っていればいたって簡単です. 基本的には irb と --noinspect 結果出力にinspectを用いない. --readline readlineライブラリを利用する. --noreadline readlineライブラリを利用しない. デフォルトの動作は, - inf-reuby-mode以外でreadlineライブラリを利用しよう + inf-ruby-mode以外でreadlineライブラリを利用しよう とする. --prompt prompt-mode --prompt-mode prompt-mode @@ -232,7 +232,7 @@ irb拡張コマンドは, 簡単な名前と頭に`irb_'をつけた名前と両方定義されて readlineを使うかどうか? true: readlineを使う. false: readlineを使わない. - nil: (デフォルト)inf-reuby-mode以外でreadlineライブラリを利用しよ + nil: (デフォルト)inf-ruby-mode以外でreadlineライブラリを利用しよ うとする. # #--- conf.verbose=T/F @@ -277,7 +277,7 @@ irb拡張コマンドは, 簡単な名前と頭に`irb_'をつけた名前と両方定義されて --- _ 前の計算の実行結果を覚えている(ローカル変数). -___ __ +--- __ 実行結果の履歴を覚えている. __[line_no]で、その行で実行した結果を得ることができる. line_noが負の 時には、最新の結果から-line_no前の結果を得ることができる. @@ -1318,6 +1318,14 @@ Init_stack(addr) STACK_LEVEL_MAX = (rlim.rlim_cur - space) / sizeof(VALUE); } } +#ifdef __ia64__ + /* ruby crashes on IA64 if compiled with optimizer on */ + /* when if STACK_LEVEL_MAX is greater than this magic number */ + /* I know this is a kludge. I suspect optimizer bug */ +#define IA64_MAGIC_STACK_LIMIT 65535 + if (STACK_LEVEL_MAX > IA64_MAGIC_STACK_LIMIT) + STACK_LEVEL_MAX = IA64_MAGIC_STACK_LIMIT; +#endif #endif } |
