Closed Bug 987160 Opened 11 years ago Closed 11 years ago

Avoid over-reserving address ranges on windows

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: terrence, Assigned: terrence)

References

Details

Attachments

(1 file, 1 obsolete file)

On windows we reserve 2*size, then unmap, then re-map committed with the right size. When alignment != size there are potentially many valid allocations that could be made in the reserved area. If AlignBytes grows in the opposite direction of the allocator, this will result in large holes. Instead we should reserve with size+alignment so that this is not possible.
Attachment #8395693 - Flags: review?(jcoppeard)
Comment on attachment 8395693 [details] [diff] [review] dont_overalloc_on_windows-v0.diff Review of attachment 8395693 [details] [diff] [review]: ----------------------------------------------------------------- We need |size + alignment - pageSize| to only allow one possible aligned block in the allocated region.
Attachment #8395693 - Flags: review?(jcoppeard) → review+
Updated.
Attachment #8395693 - Attachment is obsolete: true
Attachment #8395833 - Flags: review+
Try run looks good.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Blocks: defrag
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: