Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit609aa56

Browse files
committed
FX_NO_CONDITIONAL_WEAK_TABLE --- dead code
1 parent440e3b3 commit609aa56

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

‎src/fsharp/FSharp.Core/control.fs‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,28 +316,22 @@ namespace Microsoft.FSharp.Control
316316
// NOTE: this must be a tailcall
317317
cont res
318318

319-
#if!FX_NO_CONDITIONAL_WEAK_TABLE
320319
/// Global mutable state used to associate Exception
321320
letassociationTable= System.Runtime.CompilerServices.ConditionalWeakTable<exn, ExceptionDispatchInfo>()
322-
#endif
323321

324322
typeExceptionDispatchInfowith
325323

326324
memberedi.GetAssociatedSourceException()=
327325
letexn= edi.SourceException
328-
#if!FX_NO_CONDITIONAL_WEAK_TABLE
329326
// Try to store the entry in the association table to allow us to recover it later.
330327
try lock associationTable(fun()-> associationTable.Add(exn, edi))with_->()
331-
#endif
332328
exn
333329

334330
// Capture, but prefer the saved information if available
335331
static member inlineRestoreOrCapture(exn)=
336-
#if!FX_NO_CONDITIONAL_WEAK_TABLE
337332
match lock associationTable(fun()-> associationTable.TryGetValue(exn))with
338333
|true, edi-> edi
339334
|_->
340-
#endif
341335
ExceptionDispatchInfo.Capture(exn)
342336

343337
member inlineedi.ThrowAny()=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp