DescriptionExplicitly release JNI local references in the Java Bridge
In order to pass arguments to the methods of injected Java objects, the Java
Bridge converts JavaScript values to Java values. This involves creating JNI
jvalue objects, which may contain new local references to strings, objects and
arrays. Currently, these local references are not explicitly released, so the
VM may run out of JNI local references.
This change addresses this by explicitly releasing these local references as
soon as we're done with them.
BUG=112819
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128206
Patch Set 1 #
Total comments: 4
Patch Set 2 : Factor out ReleaseJavaValueIfRequired #
Total comments: 1
Patch Set 3 : Fix style nit #Messages
Total messages: 4 (0 generated)
|