Description[Android] Delete local java reference every loop.
In ForeignSessionHelper class, there were two places
we allocate ScopedJavaLocalRef<jstring> inside a loop and
doesn't delete. The Java local references are cleaned upon
returning to Java, but there is 512 local reference hard-limit
so we should delete it every loop to avoid hitting the limit.
BUG=366659
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266398
Patch Set 1 #Patch Set 2 : more cases #Patch Set 3 : only loop was the problem #
Messages
Total messages: 18 (0 generated)
|