cpu.x86: save context before calling new_context() since it can trigger GC (bug reported by Sascha Matzke)
							parent
							
								
									a5f59e9cd6
								
							
						
					
					
						commit
						f2646fc92c
					
				| 
						 | 
				
			
			@ -295,6 +295,7 @@ IN: bootstrap.x86
 | 
			
		|||
: jit-start-context ( -- )
 | 
			
		||||
    ! Create the new context in return-reg
 | 
			
		||||
    jit-load-vm
 | 
			
		||||
    jit-save-context
 | 
			
		||||
    ESP [] vm-reg MOV
 | 
			
		||||
    "new_context" jit-call
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -270,6 +270,7 @@ IN: bootstrap.x86
 | 
			
		|||
 | 
			
		||||
: jit-start-context ( -- )
 | 
			
		||||
    ! Create the new context in return-reg
 | 
			
		||||
    jit-save-context
 | 
			
		||||
    arg1 vm-reg MOV
 | 
			
		||||
    "new_context" jit-call
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue