Closed
Bug 1244875
Opened 8 years ago
Closed 8 years ago
Refactor JNI template classes
Categories
(Core Graveyard :: Widget: Android, defect)
Tracking
(firefox47 fixed)
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: jchen, Assigned: jchen)
Details
Attachments
(4 files)
64.50 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
10.70 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
32.48 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
292.52 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
I've been wanting to do a refactor of JNI template classes for a while, to improve the efficiency of using JNI. These patches should improve the performance of using the JNI Ref classes due to less TLS access, and there is a 10kB decrease in libxul size on try.
Assignee | ||
Comment 1•8 years ago
|
||
Improve the performance of JNI calls by making JNI calls require a Context object. LocalRef inherits from Context and can make calls directly. Non-local Ref classes will generate a Context object when making a call. The patch also makes the template design cleaner in several cases.
Attachment #8714485 -
Flags: review?(snorp)
Assignee | ||
Comment 2•8 years ago
|
||
Update the automatic binding generator to match the JNI template changes.
Attachment #8714486 -
Flags: review?(snorp)
Assignee | ||
Comment 3•8 years ago
|
||
Update JNI usages to match the changes in JNI templates.
Attachment #8714487 -
Flags: review?(snorp)
Assignee | ||
Comment 4•8 years ago
|
||
Attachment #8714488 -
Flags: review+
Attachment #8714485 -
Flags: review?(snorp) → review+
Attachment #8714486 -
Flags: review?(snorp) → review+
Attachment #8714487 -
Flags: review?(snorp) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/621d2bd7feea https://hg.mozilla.org/integration/mozilla-inbound/rev/1294093ae14d https://hg.mozilla.org/integration/mozilla-inbound/rev/491e5d709463 https://hg.mozilla.org/integration/mozilla-inbound/rev/cb0087d80b92
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/621d2bd7feea https://hg.mozilla.org/mozilla-central/rev/1294093ae14d https://hg.mozilla.org/mozilla-central/rev/491e5d709463 https://hg.mozilla.org/mozilla-central/rev/cb0087d80b92
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•