Closed
Bug 618533
Opened 15 years ago
Closed 15 years ago
forward oom notifications to child content process
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fennec | 2.0b4+ | --- |
People
(Reporter: dougt, Assigned: dougt)
References
Details
Attachments
(1 file, 1 obsolete file)
|
3.71 KB,
patch
|
jdm
:
review+
|
Details | Diff | Splinter Review |
when we run low on memory, we want to let the child content process know about it. We already have a FlushMemory method on nsIMemory which has an associated observer topic. We should forward that.
| Assignee | ||
Comment 1•15 years ago
|
||
Attachment #497036 -
Flags: review?(jones.chris.g)
| Assignee | ||
Updated•15 years ago
|
tracking-fennec: --- → 2.0b4+
Comment 2•15 years ago
|
||
Comment on attachment 497036 [details] [diff] [review]
patch v.1
You're missing any actual sending of the message. Add an observer in ContentParent?
Attachment #497036 -
Flags: review?(jones.chris.g) → review-
| Assignee | ||
Comment 3•15 years ago
|
||
yeah, patch queue fail. when i get back, i'll figure it out
| Assignee | ||
Comment 4•15 years ago
|
||
merge == better.
Attachment #497036 -
Attachment is obsolete: true
Attachment #497091 -
Flags: review?(josh)
Updated•15 years ago
|
Attachment #497091 -
Flags: review?(josh) → review+
Comment 5•15 years ago
|
||
Comment on attachment 497091 [details] [diff] [review]
patch v.2
>diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp
>--- a/dom/ipc/ContentChild.cpp
>+++ b/dom/ipc/ContentChild.cpp
>@@ -581,10 +581,20 @@ ContentChild::RecvScreenSizeChanged(cons
> #ifdef ANDROID
> mScreenSize = size;
> #else
> NS_RUNTIMEABORT("Message currently only expected on android");
> #endif
> return true;
> }
>
>+bool
>+ContentChild::RecvFlushMemory(const nsString& reason)
>+{
>+ nsCOMPtr<nsIObserverService> os =
>+ mozilla::services::GetObserverService();
>+ if (os)
>+ os->NotifyObservers(nsnull, "memory-pressure", reason.get());
This is a tab. Please fix.
>+ return true;
>+}
>+
> } // namespace dom
> } // namespace mozilla
| Assignee | ||
Comment 6•15 years ago
|
||
oh, i missed it when i pushed
http://hg.mozilla.org/mozilla-central/rev/888d64457836
but a new ws-removal patch is in my queue. I will push it next time I push something else.
| Assignee | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 7•15 years ago
|
||
| Assignee | ||
Comment 8•15 years ago
|
||
err.. wrong link.
the ws change was http://hg.mozilla.org/mozilla-central/rev/d4456ada0374
You need to log in
before you can comment on or make changes to this bug.
Description
•