| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6bd2420 commit d311916
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,10 +35,10 @@ if (!process.env.HAS_STARTED_WORKER) { | |||
| 35 | 35 | assert.deepStrictEqual(resourceLimits, testResourceLimits); | |
| 36 | 36 | const array = []; | |
| 37 | 37 | while (true) { | |
| 38 | - // Leave 10% wiggle room here, and 20% on debug builds. | ||
| 39 | - const wiggleRoom = common.buildType === 'Release' ? 1.1 : 1.2; | ||
| 40 | 38 | const usedMB = v8.getHeapStatistics().used_heap_size / 1024 / 1024; | |
| 41 | - assert(usedMB < resourceLimits.maxOldGenerationSizeMb * wiggleRoom); | ||
| 39 | + const maxReservedSize = resourceLimits.maxOldGenerationSizeMb + | ||
| 40 | + resourceLimits.maxYoungGenerationSizeMb; | ||
| 41 | + assert(usedMB < maxReservedSize); | ||
| 42 | 42 | ||
| 43 | 43 | let seenSpaces = 0; | |
| 44 | 44 | for (const { space_name, space_size } of v8.getHeapSpaceStatistics()) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments