Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Issue 10828050: Fix segfault in JNIEnv function hooks for test (Closed)

Created:
8 years, 4 months ago by Iain Merrick
Modified:
8 years, 4 months ago
Reviewers:
joth
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix segfault in JNIEnv function hooks for test On newer JB builds, the JNINativeInterface struct appears to be held in read-only memory so attempting to repoint individual function pointers in it causes segfault. So instead we repoint the top-level struct pointer to refer to our own copy held in read/write memory. BUG=137348 TEST=JNIAndroidTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148943

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -25 lines) Patch
M base/android/jni_android_unittest.cc View 4 chunks +16 lines, -8 lines 0 comments Download
M base/android/scoped_java_ref_unittest.cc View 2 chunks +16 lines, -13 lines 0 comments Download
M build/android/gtest_filter/base_unittests_disabled View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Iain Merrick
Joth, this is a cherry-pick of your downstream fix.
8 years, 4 months ago (2012-07-27 13:12:09 UTC) #1
joth
lgtm
8 years, 4 months ago (2012-07-27 16:22:14 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/10828050/2001
8 years, 4 months ago (2012-07-30 08:31:08 UTC) #3
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 13:40:42 UTC) #4
Change committed as 148943

Powered by Google App Engine
This is Rietveld 408576698