Hello,
I would like an option in options.h which is, for instance:
#define FG_ALERT_TICKS = 60000;
Then when that threshhold is met, it would, if the verb is defined, fire a #0:do_alert with args of the caller stack and task id. This would be useful when debugging older code, trying to track efficiencies and so on without actually killing.
As an example, a mud may want to lower their fg_ticks from 60,000 to 50,000 but wants to ensure core functionality remains without having tasks killed left right and center.
I've been tinkering to get this to work myself, but am running into malloc(): unaligned tcache chunk detected possibly because of the way I am extracting callers for the args?
Var value=make_stack_list(activ_stack, 0, top_activ_stack, 0,
root_activ_vector, 1, 0,
NOTHING);
run_server_task(-1, Var::new_obj(SYSTEM_OBJECT), "do_alert", value, "", nullptr);
I don't free value after because on my understanding, the task itself will free value?
Hello,
I would like an option in options.h which is, for instance:
#define FG_ALERT_TICKS = 60000;
Then when that threshhold is met, it would, if the verb is defined, fire a #0:do_alert with args of the caller stack and task id. This would be useful when debugging older code, trying to track efficiencies and so on without actually killing.
As an example, a mud may want to lower their fg_ticks from 60,000 to 50,000 but wants to ensure core functionality remains without having tasks killed left right and center.
I've been tinkering to get this to work myself, but am running into malloc(): unaligned tcache chunk detected possibly because of the way I am extracting callers for the args?
Var value=make_stack_list(activ_stack, 0, top_activ_stack, 0,
root_activ_vector, 1, 0,
NOTHING);
run_server_task(-1, Var::new_obj(SYSTEM_OBJECT), "do_alert", value, "", nullptr);
I don't free value after because on my understanding, the task itself will free value?