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

Issue 1127313006: Fix alignment issue on old ART runtime. (Closed)

Created:
5 years, 7 months ago by qsr
Modified:
5 years, 7 months ago
Reviewers:
jamesr
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Fix alignment issue on old ART runtime. Fixes #147 BUG=https://github.com/domokit/mojo/issues/147 R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/9c93cfa7fc480104701a53ab4514cf725ef6c5d4

Patch Set 1 #

Patch Set 2 : Upload after fix to java handler #

Patch Set 3 : Fix tests #

Total comments: 1

Patch Set 4 : Do not slice is not necessary #

Total comments: 3

Patch Set 5 : Follow review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -9 lines) Patch
M mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsVersioningTest.java View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M mojo/android/system/core_impl.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java View 1 2 3 4 4 chunks +21 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
qsr
5 years, 7 months ago (2015-05-12 09:58:58 UTC) #1
jamesr
https://codereview.chromium.org/1127313006/diff/40001/mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java File mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java (right): https://codereview.chromium.org/1127313006/diff/40001/mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java#newcode77 mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java:77: mByteBufferOffset = nativeGetNativeBufferOffset(ByteBuffer.allocateDirect(8), 8); if I understand correctly this ...
5 years, 7 months ago (2015-05-12 17:26:15 UTC) #2
qsr
On 2015/05/12 17:26:15, jamesr wrote: > https://codereview.chromium.org/1127313006/diff/40001/mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java > File mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java > (right): > > https://codereview.chromium.org/1127313006/diff/40001/mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java#newcode77 ...
5 years, 7 months ago (2015-05-13 07:51:11 UTC) #3
jamesr
In general I think this is a pretty poor strategy but looking at that bugfix ...
5 years, 7 months ago (2015-05-13 19:52:59 UTC) #4
qsr
On 2015/05/13 19:52:59, jamesr wrote: > In general I think this is a pretty poor ...
5 years, 7 months ago (2015-05-18 07:32:24 UTC) #5
qsr
5 years, 7 months ago (2015-05-18 07:35:37 UTC) #6
jamesr
lgtm https://codereview.chromium.org/1127313006/diff/60001/mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java File mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java (right): https://codereview.chromium.org/1127313006/diff/60001/mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java#newcode77 mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java:77: mByteBufferOffset = nativeGetNativeBufferOffset(ByteBuffer.allocateDirect(8), 8); please document what's going ...
5 years, 7 months ago (2015-05-21 21:43:13 UTC) #7
qsr
Committed patchset #5 (id:80001) manually as 9c93cfa7fc480104701a53ab4514cf725ef6c5d4 (presubmit successful).
5 years, 7 months ago (2015-05-22 12:45:06 UTC) #8
qsr
5 years, 7 months ago (2015-05-22 12:53:31 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1127313006/diff/60001/mojo/android/system/src...
File mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java
(right):

https://codereview.chromium.org/1127313006/diff/60001/mojo/android/system/src...
mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java:77:
mByteBufferOffset = nativeGetNativeBufferOffset(ByteBuffer.allocateDirect(8),
8);
On 2015/05/21 21:43:13, jamesr wrote:
> please document what's going on here (link to the issue, explanation of why
this
> is assuming alignment will be consistent)

Done.

https://codereview.chromium.org/1127313006/diff/60001/mojo/android/system/src...
mojo/android/system/src/org/chromium/mojo/system/impl/CoreImpl.java:77:
mByteBufferOffset = nativeGetNativeBufferOffset(ByteBuffer.allocateDirect(8),
8);
On 2015/05/21 21:43:13, jamesr wrote:
> please document what's going on here (link to the issue, explanation of why
this
> is assuming alignment will be consistent)

Done.

Powered by Google App Engine
This is Rietveld 408576698