MCPcopy Create free account
hub / github.com/catboost/catboost / SwitchTo

Method SwitchTo

util/system/context.cpp:200–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void TContMachineContext::SwitchTo(TContMachineContext* next) noexcept {
201 if (Y_LIKELY(__mysetjmp(Buf_) == 0)) {
202 #if defined(USE_SANITIZER_CONTEXT)
203 next->San_.BeforeSwitch(&San_);
204 #endif
205 __mylongjmp(next->Buf_, 1);
206 } else {
207 #if defined(USE_SANITIZER_CONTEXT)
208 San_.AfterSwitch();
209 #endif
210 }
211}
212#elif defined(_win_) && defined(_32_)
213void __stdcall ContextTrampoLine(void* arg) {
214 Run(arg);

Callers 2

Y_UNIT_TESTFunction · 0.45
~THelperMethod · 0.45

Calls 4

__cxa_get_globalsFunction · 0.85
BeforeSwitchMethod · 0.80
AfterSwitchMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected