mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* thread.c (recursive_push): need to set UNTRUST. [ruby-dev:38997]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									8fa67f4e58
								
							
						
					
					
						commit
						d6b9cc7baa
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		|  | @ -1,3 +1,7 @@ | ||||||
|  | Tue Aug  4 05:43:03 2009  Yukihiro Matsumoto  <matz@ruby-lang.org> | ||||||
|  | 
 | ||||||
|  | 	* thread.c (recursive_push): need to set UNTRUST.  [ruby-dev:38997] | ||||||
|  | 
 | ||||||
| Tue Aug  4 03:56:51 2009  Hidetoshi NAGAI  <nagai@ai.kyutech.ac.jp> | Tue Aug  4 03:56:51 2009  Hidetoshi NAGAI  <nagai@ai.kyutech.ac.jp> | ||||||
| 
 | 
 | ||||||
| 	* ext/tk/lib/tcltklib.c: fix trouble on old-style C function | 	* ext/tk/lib/tcltklib.c: fix trouble on old-style C function | ||||||
|  |  | ||||||
							
								
								
									
										1
									
								
								thread.c
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								thread.c
									
										
									
									
									
								
							|  | @ -3354,6 +3354,7 @@ recursive_push(VALUE hash, VALUE obj, VALUE paired_obj) | ||||||
|     sym = ID2SYM(rb_frame_this_func()); |     sym = ID2SYM(rb_frame_this_func()); | ||||||
|     if (NIL_P(hash) || TYPE(hash) != T_HASH) { |     if (NIL_P(hash) || TYPE(hash) != T_HASH) { | ||||||
| 	hash = rb_hash_new(); | 	hash = rb_hash_new(); | ||||||
|  | 	OBJ_UNTRUST(hash); | ||||||
| 	rb_thread_local_aset(rb_thread_current(), recursive_key, hash); | 	rb_thread_local_aset(rb_thread_current(), recursive_key, hash); | ||||||
| 	list = Qnil; | 	list = Qnil; | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 matz
						matz