mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	[3.14] gh-135608: Add a null check for attribute promotion to fix a JIT crash (GH-135613) (#135739)
gh-135608: Add a null check for attribute promotion to fix a JIT crash (GH-135613) Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									203753b4bb
								
							
						
					
					
						commit
						60fc42c169
					
				
					 5 changed files with 48 additions and 2 deletions
				
			
		|  | @ -580,7 +580,13 @@ dummy_func(void) { | |||
|                     PyDict_Watch(GLOBALS_WATCHER_ID, dict); | ||||
|                     _Py_BloomFilter_Add(dependencies, dict); | ||||
|                     PyObject *res = convert_global_to_const(this_instr, dict, true); | ||||
|                     attr = sym_new_const(ctx, res); | ||||
|                     if (res == NULL) { | ||||
|                         attr = sym_new_not_null(ctx); | ||||
|                     } | ||||
|                     else { | ||||
|                         attr = sym_new_const(ctx, res); | ||||
|                     } | ||||
| 
 | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ken Jin
						Ken Jin