Skip to content

[Runtime] Move some of the changes back to int. - #7529

Merged
mandel-macaque merged 5 commits into
dotnet:masterfrom
mandel-macaque:undo-long
Dec 12, 2019
Merged

[Runtime] Move some of the changes back to int.#7529
mandel-macaque merged 5 commits into
dotnet:masterfrom
mandel-macaque:undo-long

Conversation

@mandel-macaque

Copy link
Copy Markdown
Contributor

Some of the fixes done for the warnings have breaking changes. Move back
to int and ensure that we do not have any compilation errors (we are
using -Werror).

Fixes: #7509

Some of the fixes done for the warnings have breaking changes. Move back
to int and ensure that we do not have any compilation errors (we are
using -Werror).

Fixes: dotnet#7509
*(NSObject **) arg = obj;
} else {
exception_gchandle = xamarin_get_exception_for_parameter (8030, 0, "Unable to marshal the out/ref parameter", sel, method, p, i, false);
exception_gchandle = xamarin_get_exception_for_parameter (8030, 0, "Unable to marshal the out/ref parameter", sel, method, p, (int) i, false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would not this be simpler (less changes) if int i was used ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprisingly, no.

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

1 tests failed, 87 tests passed.

Failed tests

  • monotouch-test/watchOS 32-bits - simulator/Debug: Crashed

@rolfbjarne

Copy link
Copy Markdown
Member

https://github.com/xamarin/maccore/issues/2072 is still happening, so this is not complete. My first guess would be that it's the changes in trampolines-arm64.m that is causing https://github.com/xamarin/maccore/issues/2072.

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

1 tests failed, 87 tests passed.

Failed tests

  • monotouch-test/watchOS 32-bits - simulator/Debug: Crashed

@mandel-macaque

Copy link
Copy Markdown
Contributor Author

@rolfbjarne these results do look more promising.

@rolfbjarne

Copy link
Copy Markdown
Member

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

3 tests failed, 85 tests passed.

Failed tests

  • monotouch-test/iOS Unified 64-bits - simulator/Debug: Failed
  • monotouch-test/watchOS 32-bits - simulator/Debug: Crashed
  • monotouch-test/watchOS 32-bits - simulator/Release (all optimizations): TimedOut

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

1 tests failed, 87 tests passed.

Failed tests

  • monotouch-test/watchOS 32-bits - simulator/Debug: Crashed

@mandel-macaque
mandel-macaque merged commit 3f0985e into dotnet:master Dec 12, 2019
@spouliot

Copy link
Copy Markdown
Contributor

@monojenkins backport to d16-5

@monojenkins

Copy link
Copy Markdown
Contributor

@spouliot backporting to d16-5 failed, the patch results in conflicts:

Applying: [Runtime] Move some of the changes back to int.
Using index info to reconstruct a base tree...
M	runtime/delegates.t4
M	runtime/monotouch-debug.h
M	runtime/monotouch-debug.m
M	runtime/monotouch-main.m
M	runtime/runtime.m
M	runtime/trampolines-invoke.m
M	runtime/trampolines.m
M	runtime/xamarin-support.m
M	runtime/xamarin/runtime.h
M	runtime/xamarin/trampolines.h
M	src/ObjCRuntime/Runtime.cs
.git/rebase-apply/patch:262: trailing whitespace.
int 
warning: 1 line adds whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging src/ObjCRuntime/Runtime.cs
Auto-merging runtime/xamarin/trampolines.h
Auto-merging runtime/xamarin/runtime.h
Auto-merging runtime/xamarin-support.m
Auto-merging runtime/trampolines.m
Auto-merging runtime/trampolines-invoke.m
Auto-merging runtime/runtime.m
Auto-merging runtime/monotouch-main.m
Auto-merging runtime/monotouch-debug.m
Auto-merging runtime/monotouch-debug.h
Auto-merging runtime/delegates.t4
Applying: Undo changes in the trampolines arm64 code.
Applying: Remove stack protection until the assembly/code is updated not to step on the canary.
Using index info to reconstruct a base tree...
M	Make.config
Falling back to patching base and 3-way merge...
Auto-merging Make.config
CONFLICT (content): Merge conflict in Make.config
error: Failed to merge in the changes.
Patch failed at 0003 Remove stack protection until the assembly/code is updated not to step on the canary.

Please backport manually!

mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Dec 16, 2019
Some of the fixes done for the warnings have breaking changes. Move back
to int and ensure that we do not have any compilation errors (we are
using -Werror).

Fixes: dotnet#7509
mandel-macaque added a commit that referenced this pull request Dec 17, 2019
Some of the fixes done for the warnings have breaking changes. Move back
to int and ensure that we do not have any compilation errors (we are
using -Werror).

Fixes: #7509
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect changes from int to (unsigned) long in the runtime

7 participants