Closed Bug 1054671 Opened 11 years ago Closed 3 years ago

Make more static things const

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sunfish, Assigned: sunfish)

References

(Blocks 1 open bug)

Details

Attachments

(5 files, 7 obsolete files)

Attached patch const-callbacks.patch (obsolete) — Splinter Review
Attached is a series of patches which adds 'const' to various variables declared in static storage, and associated changes. On some platforms, this allows many of these variables to be placed in read-only memory (either regular read-only memory or memory made read-only after runtime relocations are performed).
Attached patch const-dom.patch (obsolete) — Splinter Review
Attached patch const-observed-prefs.patch (obsolete) — Splinter Review
Attached patch const-misc.patch (obsolete) — Splinter Review
Attached patch const-misc.patch (obsolete) — Splinter Review
Attachment #8474135 - Attachment is obsolete: true
Attached patch const-callbacks.patch (obsolete) — Splinter Review
Attachment #8474132 - Attachment is obsolete: true
Attached patch const-dom.patchSplinter Review
Attachment #8474133 - Attachment is obsolete: true
Attachment #8474134 - Attachment is obsolete: true
Attached patch const-misc.patchSplinter Review
Attachment #8476306 - Attachment is obsolete: true
Attachment #8474136 - Attachment is obsolete: true
Function pointers in static storage are happier when they are const :-).
Attachment #8524015 - Attachment is obsolete: true
Attachment #8536078 - Flags: review?(ehsan.akhgari)
Whiteboard: [leave open]
Attachment #8536078 - Flags: review?(ehsan.akhgari) → review+
I think this has caught a code issue here: https://treeherder.mozilla.org/ui/logviewer.html#?job_id=4663687&repo=mozilla-inbound Would you be able to take a look?

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: sunfish → nobody

It looks like one of these patches did land, so I'll just close this. Some of the changes in the unlanded patches do seem applicable, so maybe there's something here to do if anybody is interested. As part of the effort to reduce content process memory overhead, the most egregious of these have probably been fixed. I'll move this to XPCOM as that feels a bit more appropriate.

Status: NEW → RESOLVED
Closed: 3 years ago
Component: General → XPCOM
Resolution: --- → FIXED
Whiteboard: [leave open]
Assignee: nobody → sunfish
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: