@camstack/system 1.2.125 → 1.2.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -93991,7 +93991,8 @@ var CrashSupervisor = class {
93991
93991
  * glibc reads `MALLOC_ARENA_MAX=0` as "unbounded", which is the very state this
93992
93992
  * exists to leave.
93993
93993
  */
93994
- function runnerNativeAllocatorEnv(parentEnv) {
93994
+ function runnerNativeAllocatorEnv(parentEnv, platform = process.platform) {
93995
+ if (platform !== "linux") return {};
93995
93996
  if (parentEnv["CAMSTACK_RUNNER_NATIVE_ALLOCATOR"] === "off") return {};
93996
93997
  return {
93997
93998
  MALLOC_ARENA_MAX: parentEnv["MALLOC_ARENA_MAX"] ?? String(positiveInt(parentEnv["CAMSTACK_RUNNER_MALLOC_ARENA_MAX"], 2)),
package/dist/index.mjs CHANGED
@@ -93984,7 +93984,8 @@ var CrashSupervisor = class {
93984
93984
  * glibc reads `MALLOC_ARENA_MAX=0` as "unbounded", which is the very state this
93985
93985
  * exists to leave.
93986
93986
  */
93987
- function runnerNativeAllocatorEnv(parentEnv) {
93987
+ function runnerNativeAllocatorEnv(parentEnv, platform = process.platform) {
93988
+ if (platform !== "linux") return {};
93988
93989
  if (parentEnv["CAMSTACK_RUNNER_NATIVE_ALLOCATOR"] === "off") return {};
93989
93990
  return {
93990
93991
  MALLOC_ARENA_MAX: parentEnv["MALLOC_ARENA_MAX"] ?? String(positiveInt(parentEnv["CAMSTACK_RUNNER_MALLOC_ARENA_MAX"], 2)),
@@ -92,4 +92,4 @@ export interface RunnerNativeAllocatorEnv {
92
92
  * glibc reads `MALLOC_ARENA_MAX=0` as "unbounded", which is the very state this
93
93
  * exists to leave.
94
94
  */
95
- export declare function runnerNativeAllocatorEnv(parentEnv: NodeJS.ProcessEnv): RunnerNativeAllocatorEnv;
95
+ export declare function runnerNativeAllocatorEnv(parentEnv: NodeJS.ProcessEnv, platform?: NodeJS.Platform): RunnerNativeAllocatorEnv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/system",
3
- "version": "1.2.125",
3
+ "version": "1.2.126",
4
4
  "description": "Core addon for CamStack — builtins, pipeline, process management, auth, logging, events",
5
5
  "keywords": [
6
6
  "camstack",