pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:742:    SAFE_APPLY_MASTER("thread_quanta_exceeded", 2);    pop_stack();    }    }      #ifdef PIKE_DEBUG    pike_debug_check_thread (DLOC_ARGS_OPT);    if (Pike_in_gc > 50 && Pike_in_gc < 300)    pike_fatal_dloc ("Threads allowed during garbage collection (pass %d).\n",    Pike_in_gc); -  if (pike_global_buffer.s.str) +  if (buffer_content_length(&pike_global_buffer))    pike_fatal_dloc ("Threads allowed while the global dynamic buffer "    "is in use.\n");    ts->debug_flags |= THREAD_DEBUG_LOOSE;   #endif       if (num_threads > 1 && !threads_disabled) {    pike_swap_out_thread (ts COMMA_DLOC_ARGS_OPT);    pike_unlock_interpreter (DLOC_ARGS_OPT);    }   
pike.git/src/threads.c:816:    SAFE_APPLY_MASTER("thread_quanta_exceeded", 2);    pop_stack();    }    }      #ifdef PIKE_DEBUG    pike_debug_check_thread (DLOC_ARGS_OPT);    if (Pike_in_gc > 50 && Pike_in_gc < 300)    pike_fatal_dloc ("Threads allowed during garbage collection (pass %d).\n",    Pike_in_gc); -  if (pike_global_buffer.s.str) +  if (buffer_content_length(&pike_global_buffer))    pike_fatal_dloc ("Threads allowed while the global dynamic buffer "    "is in use.\n");    ts->debug_flags |= THREAD_DEBUG_LOOSE;   #endif       if (num_threads > 1 && !threads_disabled) {    pike_swap_out_thread (ts COMMA_DLOC_ARGS_OPT);    live_threads++;    THREADS_FPRINTF (1, "Increased live threads to %d\n", live_threads);    pike_unlock_interpreter (DLOC_ARGS_OPT);