/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
DCHECK(fiber->asanMainStackBase_);
DCHECK(fiber->asanMainStackSize_);
- // Release fake stack if fiber is completed
- auto saveFakeStackPtr =
- fiber->state_ == Fiber::INVALID ? nullptr : &fiber->asanFakeStack_;
registerStartSwitchStackWithAsan(
- saveFakeStackPtr, fiber->asanMainStackBase_, fiber->asanMainStackSize_);
+ &fiber->asanFakeStack_,
+ fiber->asanMainStackBase_,
+ fiber->asanMainStackSize_);
SCOPE_EXIT {
registerFinishSwitchStackWithAsan(
fiber->asanFakeStack_,