-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Revert "Memory management integration with common runtime libraries." #2930
Conversation
07492b7
to
6dd5597
Compare
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 seems quite reasonable to me. If one does not initialize the SDK one should not be trying to use it.
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.
We should also be initializing the logger and installing it before we initialize the CRT, so we log the CRT startup log messages as well. This will also prove the logger has no dependencies on the CRT, and then the mechanism(s) to cleanly shutdown with delays and quiesces around logging can all be removed.
@@ -210,14 +210,14 @@ namespace Aws | |||
|
|||
Aws::Config::CleanupConfigAndCredentialsCacheManager(); | |||
|
|||
Aws::Client::CoreErrorsMapper::CleanupCoreErrorsMapper(); |
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.
We should also be initializing the logger and installing it before we initialize the CRT, so we log the CRT startup log messages as well. This will also prove the logger has no dependencies on the CRT, and then the mechanism(s) to cleanly shutdown with delays and quiesces around logging can all be removed.
This reverts commit 00f9e66.
in case of custom memory management
6dd5597
to
a92347a
Compare
a92347a
to
542f071
Compare
14881ce
to
9754f3e
Compare
…led" This reverts commit ff6d663.
9754f3e
to
0b850a9
Compare
Issue #, if available:
CRT STL allocator being used in the SDK.
This forces CRT library to be initialized whenever SDK tries to use a custom allocator.
This prevents SDK from shutting down a CRT logger wrapper after shutting down the CRT library.
Description of changes:
apples and oranges;
separate the sheep from the goats;
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.