-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/cgo: update JNI's jobject to uintptr check for newer Android NDKs #26221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Keith Randall: Patch Set 1: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Ian Lance Taylor: Patch Set 1: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit Bot: Uploaded patch set 3: New patch set was added with same tree, parent, and commit message as Patch Set 2. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Ian Lance Taylor: Patch Set 3: (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Steeve Morin: Patch Set 3: (5 comments) Woops, had some unpublished drafts. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Steeve Morin: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit Bot: Uploaded patch set 5: New patch set was added with same tree, parent, and commit message as Patch Set 4. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Ian Lance Taylor: Patch Set 5: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Steeve Morin: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit Bot: Uploaded patch set 7: New patch set was added with same tree, parent, and commit message as Patch Set 6. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Ian Lance Taylor: Patch Set 7: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gobot Gobot: Patch Set 7: TryBots beginning. Status page: https://farmer.golang.org/try?commit=6cce751a Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gobot Gobot: Patch Set 7: Build is still in progress... Consult https://build.golang.org/ to see whether it's a new failure. Other builds still in progress; subsequent failure notices suppressed until final report. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gobot Gobot: Patch Set 7: TryBot-Result-1 1 of 19 TryBots failed: Consult https://build.golang.org/ to see whether they are new failures. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Ian Lance Taylor: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Steeve Morin: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Ian Lance Taylor: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 9540: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 12446: Uploaded patch set 9: New patch set was added with same tree, parent, and commit message as Patch Set 8. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5206: Patch Set 9: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5976: Patch Set 9: TryBots beginning. Status page: https://farmer.golang.org/try?commit=ab1da42b Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5976: Patch Set 9: Build is still in progress... Consult https://build.golang.org/ to see whether it's a new failure. Other builds still in progress; subsequent failure notices suppressed until final report. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5976: Patch Set 9: TryBot-Result-1 1 of 19 TryBots failed: Consult https://build.golang.org/ to see whether they are new failures. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5206: Patch Set 9: The trybot failure seems to indicate a problem with the C++ portion of the test. Is the test running, and passing, on your system? Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 9540: Patch Set 9:
It is. What is even weirder is that this is precisely the case this CL is trying to solve. Is OpenBSD the only system failing or the first one ? Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5206: Patch Set 9:
OpenBSD is the only system failing, but I don't know which of the trybots have a C++ compiler installed. It is possible that of the trybots that have a C++ compiler installed (if any) that OpenBSD is the only one that uses clang rather than g++. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 9540: Patch Set 9:
Just to be sure I've re-run the test suite, on darwin_amd64: ../misc/cgo/testPASS Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 9540: Patch Set 9:
I'm going to try on Linux. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 7435: Patch Set 9:
Ping. It would be great to have this fix in time for the next beta release. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5206: Patch Set 9: Let's make a version of this CL without the C++ test, so that we get it in without having to worry about the testing issues. Then we can handle the C++ test separately. Steeve, do you want to do that? Thanks. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 9540: Patch Set 9:
Sounds good to me. I'll submit a CL without the C++ tests. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
In Android's NDK16, jobject is now declared as: #ifdef __cplusplus class _jobject {}; typedef _jobject* jobject; #else /* not __cplusplus */ typedef void* jobject; #endif This makes the jobject to uintptr check fail because it expects the following definition: struct _jobject; typedef struct _jobject *jobject; Update the type check to handle that new type definition in both C and C++ modes. Fixes #26213 Signed-off-by: Steeve Morin <[email protected]>
Message from Gerrit User 5206: Patch Set 10: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5976: Patch Set 10: TryBots beginning. Status page: https://farmer.golang.org/try?commit=529af54d Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5976: Patch Set 10: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
Message from Gerrit User 5206: Patch Set 10: Thanks! Please don’t reply on this GitHub thread. Visit golang.org/cl/122217. |
In Android's NDK16, jobject is now declared as: #ifdef __cplusplus class _jobject {}; typedef _jobject* jobject; #else /* not __cplusplus */ typedef void* jobject; #endif This makes the jobject to uintptr check fail because it expects the following definition: struct _jobject; typedef struct _jobject *jobject; Update the type check to handle that new type definition in both C and C++ modes. Fixes #26213 Change-Id: Ic36d4a5176526998d2d5e4e404f8943961141f7a GitHub-Last-Rev: 42037c3 GitHub-Pull-Request: #26221 Reviewed-on: https://go-review.googlesource.com/122217 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Keith Randall <[email protected]>
This PR is being closed because golang.org/cl/122217 has been merged. |
In Android's NDK16, jobject is now declared as:
This makes the jobject to uintptr check fail because it expects the
following definition:
Update the type check to handle that new type definition in both C and
C++ modes.
Fixes #26213