Branch: Tag:

2003-11-25

2003-11-25 22:13:58 by Martin Stjernholm <mast@lysator.liu.se>

Fixed thread yield bug for tight loops when OPCODE_INLINE_BRANCH is used.
Note: The ppc backend needs fixing too.

Rev: src/code/README.txt:1.23
Rev: src/code/ia32.c:1.37
Rev: src/code/ia32.h:1.23
Rev: src/interpret.c:1.340
Rev: src/interpret.h:1.144
Rev: src/peep.c:1.96

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: interpret.h,v 1.143 2003/09/24 00:20:49 mast Exp $ + || $Id: interpret.h,v 1.144 2003/11/25 22:13:58 mast Exp $   */      #ifndef INTERPRET_H
574:   void dump_backlog(void);   BLOCK_ALLOC(pike_frame,128)    - #if defined (PIKE_DEBUG) && defined (PIKE_USE_MACHINE_CODE) + #ifdef PIKE_USE_MACHINE_CODE + #ifdef OPCODE_INLINE_BRANCH + void branch_check_threads_etc(); + #endif + #ifdef PIKE_DEBUG   void simple_debug_instr_prologue_0 (PIKE_INSTR_T instr);   void simple_debug_instr_prologue_1 (PIKE_INSTR_T instr, INT32 arg);   void simple_debug_instr_prologue_2 (PIKE_INSTR_T instr, INT32 arg1, INT32 arg2);   #endif -  + #endif /* PIKE_USE_MACHINE_CODE */      PMOD_EXPORT void find_external_context(struct external_variable_context *loc,    int arg2);