| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This fixes an incorrect deletion of the `TracingController` instance, which in some environments could cause an error about an invalid pointer passed to `free()`. The `TracingController` instance is actually owned by a `unique_ptr` member of the platform, so calling `platform::SetTracingController(nullptr)` is the correct way to delete it. But before that, the `TraceBuffer` must be deleted in order for the tracing loop to exit; that is accomplished by calling `TracingController::Initialize(nullptr)`.
|
This fixes the failure reported here: #9618 (comment) |
Sorry, something went wrong.
|
LGTM. Thank you for investigating this @jasongin |
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/5717/ |
Sorry, something went wrong.
|
Thanks for fixing this! |
Sorry, something went wrong.
|
LGTM too |
Sorry, something went wrong.
This fixes an incorrect deletion of the `TracingController` instance, which in some environments could cause an error about an invalid pointer passed to `free()`. The `TracingController` instance is actually owned by a `unique_ptr` member of the platform, so calling `platform::SetTracingController(nullptr)` is the correct way to delete it. But before that, the `TraceBuffer` must be deleted in order for the tracing loop to exit; that is accomplished by calling `TracingController::Initialize(nullptr)`. PR-URL: #10623 Reviewed-By: Matthew Loring <mattloring@google.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
|
Marking don't land since it depends on #9304 |
Sorry, something went wrong.
This fixes an incorrect deletion of the `TracingController` instance, which in some environments could cause an error about an invalid pointer passed to `free()`. The `TracingController` instance is actually owned by a `unique_ptr` member of the platform, so calling `platform::SetTracingController(nullptr)` is the correct way to delete it. But before that, the `TraceBuffer` must be deleted in order for the tracing loop to exit; that is accomplished by calling `TracingController::Initialize(nullptr)`. PR-URL: nodejs#10623 Reviewed-By: Matthew Loring <mattloring@google.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This fixes an incorrect deletion of the `TracingController` instance, which in some environments could cause an error about an invalid pointer passed to `free()`. The `TracingController` instance is actually owned by a `unique_ptr` member of the platform, so calling `platform::SetTracingController(nullptr)` is the correct way to delete it. But before that, the `TraceBuffer` must be deleted in order for the tracing loop to exit; that is accomplished by calling `TracingController::Initialize(nullptr)`. PR-URL: nodejs#10623 Reviewed-By: Matthew Loring <mattloring@google.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
|
Marking as don't land on 4 and 6 given that it apparently depends on #9304. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This fixes an incorrect deletion of the TracingController instance,
which in some environments could cause an error about an invalid
pointer passed to free(). The TracingController instance is
actually owned by a unique_ptr member of the platform, so calling
platform::SetTracingController(nullptr) is the correct way to
delete it. But before that, the TraceBuffer must be deleted in
order for the tracing loop to exit; that is accomplished by calling
TracingController::Initialize(nullptr).
Checklist
Affected core subsystem(s)
tracing