Skip to content

Commit ba8d519

Browse files
committed
Default '--ponymsgstilmute' to '1'
1 parent e51d8d9 commit ba8d519

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

packages/builtin/runtime_options.pony

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ struct RuntimeOptions
8282
current value. This is a floating point value. Defaults to 2.0.
8383
"""
8484

85-
var ponymsgstilmute: U32 = 10
85+
var ponymsgstilmute: U32 = 1
8686
"""
8787
Number of messages sent to muted/overloaded/under pressure actors before
8888
a muted sending actor gets unscheduled so it cannot continue to overwhelm
89-
muted/overloaded/under pressure actors. Defaults to 10.
89+
muted/overloaded/under pressure actors. Defaults to 1.
9090
"""
9191

9292
var ponynoyield: Bool = false

src/libponyrt/options/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
" pressure actors before a muted sending actor gets\n" \
4242
" unscheduled so it cannot continue to overwhelm\n" \
4343
" muted/overloaded/under pressure actors.\n" \
44-
" Defaults to 10.\n" \
44+
" Defaults to 1.\n" \
4545
" --ponynoyield Do not yield the CPU when no work is available.\n" \
4646
" --ponynoblock Do not send block messages to the cycle detector.\n" \
4747
" --ponypin Pin scheduler threads to CPU cores. The ASIO thread\n" \

src/libponyrt/sched/start.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ PONY_API int pony_init(int argc, char** argv)
238238
opt.gc_initial = 14;
239239
opt.gc_factor = 2.0f;
240240
opt.pin = false;
241-
opt.msgs_til_mute = 10;
241+
opt.msgs_til_mute = 1;
242242

243243
#if defined(USE_SYSTEMATIC_TESTING)
244244
opt.systematic_testing_seed = 0;

test/libponyc-run/backpressure/main.pony

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,3 @@ class UnderPressureWaker is TimerNotify
6363
actor Main
6464
new create(env: Env) =>
6565
Incrementer(env)
66-
67-
fun @runtime_override_defaults(rto: RuntimeOptions) =>
68-
rto.ponymsgstilmute = 1

0 commit comments

Comments
 (0)