Closed Bug 1244875 Opened 8 years ago Closed 8 years ago

Refactor JNI template classes

Categories

(Core Graveyard :: Widget: Android, defect)

All
Android
defect
Not set
normal

Tracking

(firefox47 fixed)

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: jchen, Assigned: jchen)

Details

Attachments

(4 files)

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.
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)
Update the automatic binding generator to match the JNI template
changes.
Attachment #8714486 - Flags: review?(snorp)
Update JNI usages to match the changes in JNI templates.
Attachment #8714487 - Flags: review?(snorp)
Attachment #8714485 - Flags: review?(snorp) → review+
Attachment #8714486 - Flags: review?(snorp) → review+
Attachment #8714487 - Flags: review?(snorp) → review+
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: