// |jit-test| skip-if: helperThreadCount() === 0; allow-oom

// When run with --more-compartments we hit OOM on 32 bit platforms.

// On x86, MaxCodePages is 2240. Because we sometimes leave a one-page
// gap, this will guarantee there are no free two-page chunks.
for (var i = 0; i < 2200; i++) {
  evalcx("function s(){}", evalcx('lazy'));
}

// Allocating trampolines for the JitRuntime requires two pages.
evalInWorker("");
