[ VM ] Remove unnecessary condition check

TEST=N/A

Change-Id: I4c738a9be1aee9fab636ee2cbdb796f0ed226a86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/274060
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Ben Konyi 2022-12-09 19:27:27 +00:00 committed by Commit Queue
parent 74bfe6c244
commit 0971185695

View file

@ -65,7 +65,7 @@ void HeapProfileSampler::Initialize() {
void HeapProfileSampler::EnableLocked() {
if (enabled_) {
SetNextSamplingIntervalLocked(GetNextSamplingIntervalLocked());
} else if (!enabled_) {
} else {
// Reset the TLAB boundaries to the true end to avoid unnecessary slow
// path invocations when sampling is disabled.
thread_->set_end(thread_->true_end());