mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* gc.c (Init_stack): the type of space is changed to unsigned int
from double. [ruby-dev:21483] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									cbef5b65db
								
							
						
					
					
						commit
						d821751c85
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Sat Oct  4 21:49:14 2003  WATANABE Hirofumi  <eban@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* gc.c (Init_stack): the type of space is changed to unsigned int
 | 
			
		||||
	  from double.  [ruby-dev:21483]
 | 
			
		||||
 | 
			
		||||
Sat Oct  4 17:52:59 2003  NAKAMURA, Hiroshi  <nahi@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* lib/soap/netHttpClient.rb: follow http-access2.  hosts which matches
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								gc.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								gc.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1336,7 +1336,7 @@ Init_stack(addr)
 | 
			
		|||
	struct rlimit rlim;
 | 
			
		||||
 | 
			
		||||
	if (getrlimit(RLIMIT_STACK, &rlim) == 0) {
 | 
			
		||||
	    double space = (double)rlim.rlim_cur*0.2;
 | 
			
		||||
	    unsigned int space = rlim.rlim_cur/5;
 | 
			
		||||
 | 
			
		||||
	    if (space > 1024*1024) space = 1024*1024;
 | 
			
		||||
	    STACK_LEVEL_MAX = (rlim.rlim_cur - space) / sizeof(VALUE);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue