pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.122 1999/05/02 08:11:43 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.123 1999/05/08 00:33:18 hubbe Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:642: Inside #if defined(PROFILING) and #if defined(HAVE_GETHRTIME)
   if(start_time < 0)    {    fatal("gethrtime() shrunk\n start_time=%ld\n gethrtime()=%ld\n time_base=%ld\n",    (long)(start_time/100000),    (long)(gethrtime()/100000),    (long)(time_base/100000));    }   #endif   #endif    + #if defined(PIKE_DEBUG) && defined(_REENTRANT) +  if(d_flag) +  { +  if( thread_id && !th_equal( OBJ2THREAD(thread_id)->id, th_self()) ) +  fatal("Current thread is wrong.\n"); +  +  if(thread_for_id(th_self()) != thread_id) +  fatal("thread_for_id() (or thread_id) failed in mega_apply! %p != %p\n",thread_for_id(th_self()),thread_id); +  } + #endif +     switch(type)    {    case APPLY_STACK:    apply_stack:    if(!args)    PIKE_ERROR("`()", "Too few arguments.\n", sp, 0);    args--;    if(sp-save_sp-args > (args<<2) + 32)    {    /* The test above assures these two areas