Skip to content

[dynamic registrar] Free the return value from mono_signature_get_params and mono_signature_get_return_type.#11730

Merged
rolfbjarne merged 1 commit into
dotnet:mainfrom
rolfbjarne:coreclr-release-mono-signature-parameters
May 31, 2021
Merged

[dynamic registrar] Free the return value from mono_signature_get_params and mono_signature_get_return_type.#11730
rolfbjarne merged 1 commit into
dotnet:mainfrom
rolfbjarne:coreclr-release-mono-signature-parameters

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Before:

There were 258042 MonoObjects created, 235166 MonoObjects freed, so 22876 were not freed. (dynamic registrar)
There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)

After:

There were 258066 MonoObjects created, 246781 MonoObjects freed, so 11285 were not freed. (dynamic registrar)
There were 205804 MonoObjects created, 204491 MonoObjects freed, so 1313 were not freed. (static registrar)

…ams and mono_signature_get_return_type.

Before:

    There were 258042 MonoObjects created, 235166 MonoObjects freed, so 22876 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)

After:

    There were 258066 MonoObjects created, 246781 MonoObjects freed, so 11285 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204491 MonoObjects freed, so 1313 were not freed. (static registrar)
@rolfbjarne rolfbjarne added not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests labels May 28, 2021
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Pipeline on Agent
Merge 8a1f1c9 into 165941e

@rolfbjarne

Copy link
Copy Markdown
Member Author

🥳

Azure DevOps Services
     Sorry! Our services aren't available right now.
     We're working to restore all services as quickly as possible. Please check back soon.
     To see the latest status on our services, please visit our support page.

Comment thread runtime/runtime.m
} else {
for (int i = 0; i < index + 1; i++)
for (int i = 0; i < index + 1; i++) {
xamarin_mono_object_release (&p);

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.

I assume it's fine if the first iteration points to NULL, right ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correct, a pointer to NULL will be ignored.

Comment thread runtime/runtime.m
for (int i = 0; i < index + 1; i++) {
xamarin_mono_object_release (&p);
p = mono_signature_get_params (msig, &iter);
}

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.

what will release the last p assigned in the loop ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It will be returned from this function, and the caller will have to release it.

@rolfbjarne

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

2 tests failed, 106 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug (CoreCLR) [dotnet]: Failed (Test run failed.
    Tests run: 2444 Passed: 2353 Inconclusive: 7 Failed: 4 Ignored: 87)
  • monotouch-test/Mac [dotnet]/Debug (CoreCLR, static registrar) [dotnet]: Failed (Test run failed.
    Tests run: 2441 Passed: 2353 Inconclusive: 7 Failed: 2 Ignored: 86)

Pipeline on Agent XAMBOT-1100.BigSur
Merge 8a1f1c9 into 51c9364

@rolfbjarne rolfbjarne merged commit 4f28fb2 into dotnet:main May 31, 2021
@rolfbjarne rolfbjarne deleted the coreclr-release-mono-signature-parameters branch May 31, 2021 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants