pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:3422: Inside #if 0
      for (p = kill_list; p;) {    if ((cycle = p->cycle)) {    push_object((struct object *) p->data);    dmalloc_touch_svalue(Pike_sp-1);    *obj_arr_ = append_array(*obj_arr_, --Pike_sp);    }    p = p->next;    if (p ? ((unsigned)(p->cycle != cycle)) : cycle) {    if ((*obj_arr_)->size >= 2) { -  push_text("gc"); -  push_text("bad_cycle"); +  push_static_text("gc"); +  push_static_text("bad_cycle");    push_array(*obj_arr_);    *obj_arr_ = 0;    SAFE_APPLY_MASTER("runtime_warning", 3);    pop_stack();    *obj_arr_ = allocate_array(0);    }    else *obj_arr_ = resize_array(*obj_arr_, 0);    }    if (!p) break;    }
pike.git/src/gc.c:4218:    *!    *! @seealso    *! @[gc()], @[Pike.gc_parameters()], @[Pike.implicit_gc_real_time]    */   void f__gc_status(INT32 args)   {    int size = 0;       pop_n_elems(args);    -  push_text("num_objects"); +  push_static_text("num_objects");    push_int(num_objects);    size++;    -  push_text("num_allocs"); +  push_static_text("num_allocs");    push_int64(num_allocs);    size++;    -  push_text("alloc_threshold"); +  push_static_text("alloc_threshold");    push_int64(alloc_threshold);    size++;    -  push_text("projected_garbage"); +  push_static_text("projected_garbage");    push_float(DO_NOT_WARN((FLOAT_TYPE)(objects_freed * (double) num_allocs /    (double) alloc_threshold)));    size++;    -  push_text("objects_alloced"); +  push_static_text("objects_alloced");    push_int64(DO_NOT_WARN((INT64)objects_alloced));    size++;    -  push_text("objects_freed"); +  push_static_text("objects_freed");    push_int64(DO_NOT_WARN((INT64)objects_freed));    size++;    -  push_text("last_garbage_ratio"); +  push_static_text("last_garbage_ratio");    push_float(DO_NOT_WARN((FLOAT_TYPE) last_garbage_ratio));    size++;    -  push_text("non_gc_time"); +  push_static_text("non_gc_time");    push_int64(DO_NOT_WARN((INT64) non_gc_time));    size++;    -  push_text("gc_time"); +  push_static_text("gc_time");    push_int64(DO_NOT_WARN((INT64) gc_time));    size++;       push_text ("last_garbage_strategy");    switch (last_garbage_strategy) {    case GARBAGE_RATIO_LOW:    push_text ("garbage_ratio_low"); break;    case GARBAGE_RATIO_HIGH:    push_text ("garbage_ratio_high"); break;    case GARBAGE_MAX_INTERVAL:    push_text ("garbage_max_interval"); break;   #ifdef PIKE_DEBUG    default:    Pike_fatal ("Unknown last_garbage_strategy %d\n", last_garbage_strategy);   #endif    }    size++;    -  push_text("last_gc"); +  push_static_text("last_gc");    push_int64(last_gc);    size++;       push_text ("total_gc_cpu_time");    push_int64 (auto_gc_time);   #ifndef LONG_CPU_TIME    push_int (1000000000 / CPU_TIME_TICKS);    o_multiply();   #endif    size++;