mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									6b43c9bfbf
								
							
						
					
					
						commit
						23bcab8d63
					
				
					 4 changed files with 18 additions and 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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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. 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -53,7 +53,7 @@ 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
 | 
			
		|||
    readlineを使うかどうか?
 | 
			
		||||
    true: readlineを使う.
 | 
			
		||||
    false: readlineを使わない.
 | 
			
		||||
    nil: (デフォルト)inf-reuby-mode以外でreadlineライブラリを利用しよ
 | 
			
		||||
    nil: (デフォルト)inf-ruby-mode以外でreadlineライブラリを利用しよ
 | 
			
		||||
         うとする.  
 | 
			
		||||
#
 | 
			
		||||
#--- conf.verbose=T/F
 | 
			
		||||
| 
						 | 
				
			
			@ -277,7 +277,7 @@ irb
 | 
			
		|||
 | 
			
		||||
--- _  
 | 
			
		||||
    前の計算の実行結果を覚えている(ローカル変数).
 | 
			
		||||
___ __ 
 | 
			
		||||
--- __ 
 | 
			
		||||
    実行結果の履歴を覚えている.
 | 
			
		||||
    __[line_no]で、その行で実行した結果を得ることができる. line_noが負の
 | 
			
		||||
    時には、最新の結果から-line_no前の結果を得ることができる.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								gc.c
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								gc.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue