-
Notifications
You must be signed in to change notification settings - Fork 516
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
[runtime] Move xamarin_create_managed_ref internal call to managed code. #11271
Merged
rolfbjarne
merged 3 commits into
xamarin:main
from
rolfbjarne:move-create-managed-ref-to-managed-code
Apr 23, 2021
+77
−51
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
a1701a3
[runtime] Move xamarin_create_managed_ref internal call to managed code.
rolfbjarne 955551c
Merge remote-tracking branch 'origin/main' into move-create-managed-r…
rolfbjarne c8bccfb
Use the right COOP behavior for the xamarin_set_gchandle_with_flags P…
rolfbjarne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,12 @@ | |
extern "C" { | ||
#endif | ||
|
||
// Must be kept in sync with the same enum in NSObject2.cs | ||
enum XamarinGCHandleFlags : uint32_t { | ||
XamarinGCHandleFlags_None = 0, | ||
XamarinGCHandleFlags_WeakGCHandle = 1, | ||
XamarinGCHandleFlags_HasManagedRef = 2, | ||
XamarinGCHandleFlags_InitialSet = 4, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happened with 3? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are flags, so 1 + 2 = 3. |
||
}; | ||
|
||
void * xamarin_trampoline (id self, SEL sel, ...); | ||
|
@@ -39,7 +41,7 @@ long long xamarin_static_longret_trampoline (id self, SEL sel, ...); | |
id xamarin_copyWithZone_trampoline1 (id self, SEL sel, NSZone *zone); | ||
id xamarin_copyWithZone_trampoline2 (id self, SEL sel, NSZone *zone); | ||
GCHandle xamarin_get_gchandle_trampoline (id self, SEL sel); | ||
void xamarin_set_gchandle_trampoline (id self, SEL sel, GCHandle gc_handle, enum XamarinGCHandleFlags flags); | ||
bool xamarin_set_gchandle_trampoline (id self, SEL sel, GCHandle gc_handle, enum XamarinGCHandleFlags flags); | ||
enum XamarinGCHandleFlags xamarin_get_flags_trampoline (id self, SEL sel); | ||
void xamarin_set_flags_trampoline (id self, SEL sel, enum XamarinGCHandleFlags flags); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment sounds outdated.