mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 10:48:25 +00:00
[ 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:
parent
74bfe6c244
commit
0971185695
|
@ -65,7 +65,7 @@ void HeapProfileSampler::Initialize() {
|
||||||
void HeapProfileSampler::EnableLocked() {
|
void HeapProfileSampler::EnableLocked() {
|
||||||
if (enabled_) {
|
if (enabled_) {
|
||||||
SetNextSamplingIntervalLocked(GetNextSamplingIntervalLocked());
|
SetNextSamplingIntervalLocked(GetNextSamplingIntervalLocked());
|
||||||
} else if (!enabled_) {
|
} else {
|
||||||
// Reset the TLAB boundaries to the true end to avoid unnecessary slow
|
// Reset the TLAB boundaries to the true end to avoid unnecessary slow
|
||||||
// path invocations when sampling is disabled.
|
// path invocations when sampling is disabled.
|
||||||
thread_->set_end(thread_->true_end());
|
thread_->set_end(thread_->true_end());
|
||||||
|
|
Loading…
Reference in a new issue