Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 75d2c46

Browse files
Fix GC heap corruption on ARM. (#27985)
Port of dotnet/runtime#1389.
1 parent 04d3f0d commit 75d2c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gc/gc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14980,7 +14980,7 @@ uint8_t* gc_heap::allocate_in_expanded_heap (generation* gen,
1498014980
#else // FEATURE_STRUCTALIGN
1498114981
if (!((old_loc == 0) || same_large_alignment_p (old_loc, result+pad)))
1498214982
{
14983-
pad += switch_alignment_size (is_plug_padded (old_loc));
14983+
pad += switch_alignment_size (pad != 0);
1498414984
set_node_realigned (old_loc);
1498514985
dprintf (3, ("Allocation realignment old_loc: %Ix, new_loc:%Ix",
1498614986
(size_t)old_loc, (size_t)(result+pad)));

0 commit comments

Comments
 (0)