summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/V8Counters.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-11-01 13:16:30 +0000
committerSteve Block <steveblock@google.com>2010-11-01 15:49:26 +0000
commitf947415b59bf9cc2a85a73ef8b3f3d99c9c65199 (patch)
treed10c545238bdcbe469f7ef2734e95863d635afc8 /WebKit/android/WebCoreSupport/V8Counters.cpp
parent5f2149d97da7a452dc97a39cfe9882436cc3dbc7 (diff)
downloadexternal_webkit-f947415b59bf9cc2a85a73ef8b3f3d99c9c65199.zip
external_webkit-f947415b59bf9cc2a85a73ef8b3f3d99c9c65199.tar.gz
external_webkit-f947415b59bf9cc2a85a73ef8b3f3d99c9c65199.tar.bz2
Fix WebCoreStringToJString() to not delete the local reference to the new jstring
The JNI spec allows for local objects to be GC'ed before the JNI frame returns, so this is dangerous. Also rename the method to WtfStringToJstring() to match the existing jstringToWtfString() and update call sites to JNIEnv::NewString() to make use of it. Change-Id: I84aa25ba1aca2aee346bf6e3d83a58afc3a95219
Diffstat (limited to 'WebKit/android/WebCoreSupport/V8Counters.cpp')
0 files changed, 0 insertions, 0 deletions