Closed Bug 1590845 Opened 5 years ago Closed 5 years ago

Add JS::MemoryUse values for embedders

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox-esr68 --- fixed
firefox72 --- fixed

People

(Reporter: ptomato, Assigned: ptomato)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The current values in the JS::MemoryUse enum don't necessarily fit the usages that embedders might have for their C-allocated memory. In order to make JS::AddAssociatedMemory() and JS::RemoveAssociatedMemory() more useful for embedders I'd propose adding JS::MemoryUse::Embedding1 through JS::MemoryUse::Embedding5 to the public JS::MemoryUse enum.

Blocks: sm-embedding

This makes JS::AddAssociatedMemory() and JS::RemoveAssociatedMemory()
more useful for embedders.

Priority: -- → P2
Assignee: nobody → philip.chimento
Status: NEW → ASSIGNED
Keywords: checkin-needed

Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e4f991bcd898
Add JS::MemoryUse::Embedding1 through 5. r=tcampbell,jonco

Keywords: checkin-needed

Comment on attachment 9103724 [details]
Bug 1590845 - Add JS::MemoryUse::Embedding1 through 5. r?tcampbell

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This makes the JS::AddAssociatedMemory and JS::RemoveAssociatedMemory APIs more useful for SpiderMonkey embedders, who primarily use the ESR version.
  • User impact if declined: SpiderMonkey embedders will have less accurate memory tracking in their applications
  • Fix Landed on Version: 72
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This adds some more values to an enum, which are not used within Firefox, so it seems quite low-risk.
  • String or UUID changes made by this patch: None
Attachment #9103724 - Flags: approval-mozilla-esr68?
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

Comment on attachment 9103724 [details]
Bug 1590845 - Add JS::MemoryUse::Embedding1 through 5. r?tcampbell

This needs a rebased patch for ESR68.

Flags: needinfo?(philip.chimento)
Attachment #9103724 - Flags: approval-mozilla-esr68?

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: I've added a backport of the patch to ESR68. For rationale please see earlier uplift request on this bug.
  • User impact if declined:
  • Fix Landed on Version:
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky):
  • String or UUID changes made by this patch:
Flags: needinfo?(philip.chimento)
Attachment #9105470 - Flags: approval-mozilla-esr68?
Comment on attachment 9105470 [details] [diff] [review]
Backport of patch to ESR68

SM embedding improvements. NPOTB for Firefox. Approved for 68.3esr.
Attachment #9105470 - Flags: approval-mozilla-esr68? → approval-mozilla-esr68+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: