Closed Bug 53310 Opened 25 years ago Closed 25 years ago

implement nsMemoryImpl::IsLowMemory() for MacOS

Categories

(Core :: XPCOM, defect, P3)

PowerPC
All
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: waterson, Assigned: sfraser_bugs)

References

Details

(Keywords: memory-footprint, Whiteboard: [rtm++] patch)

Attachments

(2 files)

Need to implement this routine on MacOS for memory flusher thread to be useful. Alternatively, add calls to nsIMemory::heapMinimize() in appropriate places.
Blocks: 44352
Keywords: footprint
simon, rtm or future? whatever you think is best. anthonyd
RTM
Keywords: rtm
setting to m19. anthonyd
Target Milestone: --- → M19
Simon, please include the required information per the rtm checkin rules
Whiteboard: [rtm+ NEED INFO]
Looking for an r= (scc?) and sr= (waterson?) on that patch. There is some risk here, since we'll be spinning up an extra thread on Mac that we didnt' have before. But some debugging shows that the thread runs fine, and doesn't seem to cause any problems. If anything, I think it needs to run a little more often.
Status: NEW → ASSIGNED
Whiteboard: [rtm+ NEED INFO] → [rtm+ NEED INFO] patch
removing + per pdt sw rules
Whiteboard: [rtm+ NEED INFO] patch → [rtm NEED INFO] patch
Use spaces, not tabs ;-). Fix that, and r=waterson
Oops, copy-pasted from tabified code (sorry). Will fix the tabs.
...yeah, fix the tabs, and the spelling of |kReserveHeapContigSpace| and all is well; sr=scc.
rtm++ on the theory that low memory handling will reduce crashers.
Whiteboard: [rtm NEED INFO] patch → [rtm++] patch
Phil: I'm glad you're ++ing this, but I think this one needs some mileage on it before landing it on the branch -- just to make sure there isn't some side-effect of flushing that we didn't forsee. Mac is the only platform that calls flushers when allocation fails (in addition to on the timer like on unix/win).
Fix checked into trunk and branch.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
OS: All
Resolution: --- → FIXED
sfraser: suggestions on how to verify this?
Source level fix.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: