Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/analytics/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ pub mod features {
56 => (webview_chrome, "webview_chrome"),
#[unsafe(export_name = "Bun__Feature__webview_webkit")]
57 => (webview_webkit, "webview_webkit"),
58 => (memory_pressure, "memory_pressure"),
}

// Zig: `comptime { @export(&napi_module_register, .{ .name = "Bun__napi_module_register_count" }); ... }`
Expand Down
6 changes: 6 additions & 0 deletions src/bun_core/env_var.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ pub mod feature_flag {
new_feature_flag!(pub BUN_FEATURE_FLAG_DISABLE_IPV4, "BUN_FEATURE_FLAG_DISABLE_IPV4", {});
new_feature_flag!(pub BUN_FEATURE_FLAG_DISABLE_IPV6, "BUN_FEATURE_FLAG_DISABLE_IPV6", {});
new_feature_flag!(pub BUN_FEATURE_FLAG_DISABLE_MEMFD, "BUN_FEATURE_FLAG_DISABLE_MEMFD", {});
// React to OS low-memory signals (Windows LowMemoryResourceNotification,
// macOS DISPATCH_SOURCE_TYPE_MEMORYPRESSURE, Linux PSI) by running a sync
// GC, shrinking the JSC footprint, and forcing mi_collect. Default-off
// while we gather data; flip to default-on (rename to ...DISABLE...) once
// validated.
new_feature_flag!(pub BUN_FEATURE_FLAG_EXPERIMENTAL_MEMORY_PRESSURE_HANDLER, "BUN_FEATURE_FLAG_EXPERIMENTAL_MEMORY_PRESSURE_HANDLER", {});
// The RedisClient supports auto-pipelining by default. This flag disables that behavior.
new_feature_flag!(pub BUN_FEATURE_FLAG_DISABLE_REDIS_AUTO_PIPELINING, "BUN_FEATURE_FLAG_DISABLE_REDIS_AUTO_PIPELINING", {});
new_feature_flag!(pub BUN_FEATURE_FLAG_DISABLE_RWF_NONBLOCK, "BUN_FEATURE_FLAG_DISABLE_RWF_NONBLOCK", {});
Expand Down
Loading
Loading