mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* vm_exec.c (vm_exec_core): add an UNLIKELY() hint.
* vm_insnhelper.h (BASIC_OP_UNREDEFINED_P): add a LIKELY() hint. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									8d397604bf
								
							
						
					
					
						commit
						574027ba03
					
				
					 3 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -83,7 +83,7 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
 | 
			
		|||
 | 
			
		||||
#if OPT_TOKEN_THREADED_CODE || OPT_DIRECT_THREADED_CODE
 | 
			
		||||
#include "vmtc.inc"
 | 
			
		||||
    if (th == 0) {
 | 
			
		||||
    if (UNLIKELY(th == 0)) {
 | 
			
		||||
#if OPT_STACK_CACHING
 | 
			
		||||
	finish_insn_seq[0] = (VALUE)&&LABEL (finish_SC_ax_ax);
 | 
			
		||||
#else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue