Skip to content

Commit 401b858

Browse files
committed
bump up wait even more, move behind config flag
1 parent 7b3ef1a commit 401b858

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/Backend/NativeCodeGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3673,7 +3673,7 @@ JITManager::HandleServerCallResult(HRESULT hr, RemoteCallType callType)
36733673

36743674
// we should not have RPC failure if JIT process is still around
36753675
// since this is going to be a failfast, lets wait a bit in case server is in process of terminating
3676-
if (WaitForSingleObject(GetJITManager()->GetServerHandle(), 1000) != WAIT_OBJECT_0)
3676+
if (WaitForSingleObject(GetJITManager()->GetServerHandle(), CONFIG_FLAG(RPCFailFastWait)) != WAIT_OBJECT_0)
36773677
{
36783678
RpcFailure_fatal_error(hr);
36793679
}

lib/Common/ConfigFlagsList.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ PHASE(All)
657657
#define DEFAULT_CONFIG_PerfHintLevel (1)
658658
#define DEFAULT_CONFIG_OOPJITMissingOpts (true)
659659
#define DEFAULT_CONFIG_OOPCFGRegistration (true)
660+
#define DEFAULT_CONFIG_RPCFailFastWait (3000)
660661

661662
#define DEFAULT_CONFIG_FailFastIfDisconnectedDelegate (false)
662663

@@ -1207,6 +1208,7 @@ FLAGNR(Boolean, NoDeferParse , "Disable deferred parsing", false)
12071208
FLAGNR(Boolean, NoLogo , "No logo, which we don't display anyways", false)
12081209
FLAGNR(Boolean, OOPJITMissingOpts , "Use optimizations that are missing from OOP JIT", DEFAULT_CONFIG_OOPJITMissingOpts)
12091210
FLAGNR(Boolean, OOPCFGRegistration , "Do CFG registration OOP (under OOP JIT)", DEFAULT_CONFIG_OOPCFGRegistration)
1211+
FLAGNR(Number, RPCFailFastWait , "Wait time for JIT process termination before triggering failfast on RPC failure", DEFAULT_CONFIG_RPCFailFastWait)
12101212
#ifdef _ARM64_
12111213
FLAGR (Boolean, NoNative , "Disable native codegen", true)
12121214
#else

0 commit comments

Comments
 (0)