diff --git a/applications/Makefile b/applications/Makefile index 826bc241..1ec969c4 100644 --- a/applications/Makefile +++ b/applications/Makefile @@ -12,7 +12,7 @@ LDFLAGS=-shared -fPIC -Wl,--export-dynamic,--whole-archive -L../libsledge/dist/ # LDFLAGS=-flto -fvisibility=hidden # Strips out calls to assert() and disables debuglog -#CFLAGS+=-DNDEBUG +CFLAGS+=-DNDEBUG dist: mkdir -p dist diff --git a/libsledge/Makefile b/libsledge/Makefile index 167d5032..9f0d4df6 100644 --- a/libsledge/Makefile +++ b/libsledge/Makefile @@ -5,7 +5,7 @@ INCLUDES := -Iinclude/ CFLAGS := -fPIC -O3 -flto -ftls-model=initial-exec # Strips out calls to assert() and disables debuglog -#CFLAGS+=-DNDEBUG +CFLAGS+=-DNDEBUG # CFI Sanitizer # CFLAGS+=-fvisibility=default -fsanitize=cfi diff --git a/runtime/Makefile b/runtime/Makefile index e1715c3e..a90f1b35 100644 --- a/runtime/Makefile +++ b/runtime/Makefile @@ -43,25 +43,25 @@ BINARY_NAME=sledgert # Debugging Flags # Enables logs of WASI syscalls -CFLAGS += -DLOG_WASI +# CFLAGS += -DLOG_WASI # Sandbox writes to stdout and stderr are both written to the client socket # However, when set, stderr is also written to the host stderr to assist with debugging -CFLAGS += -DLOG_SANDBOX_STDERR +# CFLAGS += -DLOG_SANDBOX_STDERR # Strips out calls to assert() and disables debuglog # CFLAGS += -DNDEBUG # Redirects debuglogs to /runtime/bin/sledge.log -CFLAGS += -DLOG_TO_FILE +# CFLAGS += -DLOG_TO_FILE # Various Informational Logs for Debugging # CFLAGS += -DLOG_ADMISSIONS_CONTROL # CFLAGS += -DLOG_CONTEXT_SWITCHES -CFLAGS += -DLOG_HTTP_PARSER -CFLAGS += -DLOG_TENANT_LOADING +# CFLAGS += -DLOG_HTTP_PARSER +# CFLAGS += -DLOG_TENANT_LOADING # CFLAGS += -DLOG_PREEMPTION -CFLAGS += -DLOG_SANDBOX_ALLOCATION +# CFLAGS += -DLOG_SANDBOX_ALLOCATION # CFLAGS += -DLOG_UNSUPPORTED_WASI # Stores and logs extended signal information for each worker @@ -76,7 +76,7 @@ CFLAGS += -DLOG_SANDBOX_ALLOCATION # CFLAGS += -DLOG_SANDBOX_MEMORY_PROFILE # This flag enables runtime-level metrics from procfs -CFLAGS += -DPROC_STAT_METRICS +# CFLAGS += -DPROC_STAT_METRICS # This flag enables HTTP-level counters of incoming requests and outgoing responses, broken out by status code # family, such as 2XX, 4XX, 5XX. @@ -98,7 +98,7 @@ CFLAGS += -DPROC_STAT_METRICS # This flag enables an per-worker atomic count of sandbox's local runqueue count in thread local storage # Useful to debug if sandboxes are "getting caught" or "leaking" while in a local runqueue -CFLAGS += -DLOG_LOCAL_RUNQUEUE +# CFLAGS += -DLOG_LOCAL_RUNQUEUE # System Configuration Flags diff --git a/runtime/include/scheduler.h b/runtime/include/scheduler.h index 6835d6b0..69c96e7a 100644 --- a/runtime/include/scheduler.h +++ b/runtime/include/scheduler.h @@ -409,10 +409,7 @@ scheduler_idle_loop() local_cleanup_queue_free(); /* Improve the performance of spin-wait loops (works only if preemptions enabled) */ - if (runtime_worker_spinloop_pause_enabled) { - debuglog("Inside scheduler idle loop, pause enabled") - pause(); - } + if (runtime_worker_spinloop_pause_enabled) pause(); } }