Skip to content

Commit 57b7206

Browse files
cartermpTIHan
authored andcommitted
Set LOH threshold for chunked resizearray to be smaller to avoid LOH allocations (#8027)
* Set LOH threshold for chunked resizearray to be smaller to avoid LOH allocations * Update illib.fs
1 parent 7228b94 commit 57b7206

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/absil/illib.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ let inline nonNull msg x = if isNull x then failwith ("null: " + msg) else x
4040
let inline (===) x y = LanguagePrimitives.PhysicalEquality x y
4141

4242
/// Per the docs the threshold for the Large Object Heap is 85000 bytes: https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/large-object-heap#how-an-object-ends-up-on-the-large-object-heap-and-how-gc-handles-them
43-
/// We set the limit to slightly under that to allow for some 'slop'
44-
let LOH_SIZE_THRESHOLD_BYTES = 84_900
43+
/// We set the limit to be 80k to account for larger pointer sizes for when F# is running 64-bit.
44+
let LOH_SIZE_THRESHOLD_BYTES = 80_000
4545

4646
//---------------------------------------------------------------------
4747
// Library: ReportTime

0 commit comments

Comments
 (0)