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

Issue 267893002: Catch intptr_t to int conversion on 64-bit platforms. (Closed)

Created:
6 years, 7 months ago by Anton
Modified:
6 years, 7 months ago
Reviewers:
bulach
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, whywhat, mkosiba (inactive), Peter Beverloo
Visibility:
Public.

Description

Catch intptr_t to int conversion on 64-bit platforms. Change the JNI generator to introduce a wrapper type jni_int_wrapper which is used to prevent implicit conversions which could be an intptr_t to int conversion. Change also includes fix (adding explicit case) for a false positive which existings in the code base. BUG=354405, 346626 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268741

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address Marcus' comments #

Total comments: 2

Patch Set 3 : Address Marcus' comment about quotes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -293 lines) Patch
M base/android/jni_generator/golden_sample_for_tests_jni.h View 1 5 chunks +8 lines, -5 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 2 5 chunks +23 lines, -4 lines 0 comments Download
M base/android/jni_generator/testCalledByNatives.golden View 1 7 chunks +16 lines, -11 lines 0 comments Download
M base/android/jni_generator/testConstantsFromJavaP.golden View 1 67 chunks +273 lines, -257 lines 0 comments Download
M base/android/jni_generator/testEagerCalledByNativesOption.golden View 1 3 chunks +8 lines, -5 lines 0 comments Download
M base/android/jni_generator/testFromJavaP.golden View 1 5 chunks +10 lines, -8 lines 0 comments Download
M base/android/jni_generator/testFromJavaPGenerics.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/jni_generator/testInnerClassNatives.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/jni_generator/testInnerClassNativesMultiple.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/jni_generator/testJNIInitNativeNameOption.golden View 1 2 chunks +3 lines, -1 line 0 comments Download
M base/android/jni_generator/testJarJarRemapping.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/jni_generator/testNatives.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/jni_generator/testNativesLong.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/jni_generator/testPureNativeMethodsOption.golden View 1 2 chunks +3 lines, -1 line 0 comments Download
A base/android/jni_int_wrapper.h View 1 1 chunk +56 lines, -0 lines 0 comments Download
M content/browser/android/content_video_view.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Anton
6 years, 7 months ago (2014-05-02 15:40:07 UTC) #1
bulach
very nice, thanks anton! some small nits, and a question / suggestion to make this ...
6 years, 7 months ago (2014-05-02 16:55:56 UTC) #2
rmcilroy
On 2014/05/02 16:55:56, bulach wrote: > very nice, thanks anton! some small nits, and a ...
6 years, 7 months ago (2014-05-02 17:21:21 UTC) #3
rmcilroy
On 2014/05/02 17:21:21, rmcilroy wrote: > On 2014/05/02 16:55:56, bulach wrote: > > very nice, ...
6 years, 7 months ago (2014-05-02 17:28:35 UTC) #4
Anton
On 2014/05/02 17:28:35, rmcilroy wrote: > On 2014/05/02 17:21:21, rmcilroy wrote: > > On 2014/05/02 ...
6 years, 7 months ago (2014-05-06 13:02:48 UTC) #5
Anton
On 2014/05/02 16:55:56, bulach wrote: > very nice, thanks anton! some small nits, and a ...
6 years, 7 months ago (2014-05-06 14:32:13 UTC) #6
bulach
lgtm, I like it a lot, thanks!!! (and thanks to peter for the original insight ...
6 years, 7 months ago (2014-05-06 14:57:54 UTC) #7
Anton
On 2014/05/06 14:57:54, bulach wrote: > lgtm, I like it a lot, thanks!!! > (and ...
6 years, 7 months ago (2014-05-06 15:04:50 UTC) #8
rmcilroy
On 2014/05/06 13:02:48, Anton wrote: > On 2014/05/02 17:28:35, rmcilroy wrote: > > On 2014/05/02 ...
6 years, 7 months ago (2014-05-06 17:16:03 UTC) #9
Anton
The CQ bit was checked by anton@chromium.org
6 years, 7 months ago (2014-05-06 17:17:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anton@chromium.org/267893002/40001
6 years, 7 months ago (2014-05-06 17:18:19 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-07 09:35:20 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 14:14:19 UTC) #13
Message was sent while issue was closed.
Change committed as 268741

Powered by Google App Engine
This is Rietveld 408576698