Skip to content

Commit

Permalink
Adding wb on array copying; undef new macro as well
Browse files Browse the repository at this point in the history
  • Loading branch information
udesou committed Aug 2, 2024
1 parent 5cf0dae commit ec77b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/genericmemory.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ JL_DLLEXPORT void jl_genericmemory_copyto(jl_genericmemory_t *dest, char* destda
_Atomic(void*) * dest_p = (_Atomic(void*)*)destdata;
_Atomic(void*) * src_p = (_Atomic(void*)*)srcdata;
jl_value_t *owner = jl_genericmemory_owner(dest);
mmtk_gc_wb(owner, NULL);
if (__unlikely(jl_astaggedvalue(owner)->bits.gc == GC_OLD_MARKED)) {
jl_value_t *src_owner = jl_genericmemory_owner(src);
ssize_t done = 0;
Expand Down
1 change: 1 addition & 0 deletions src/llvm-final-gc-lowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ bool FinalLowerGC::runOnFunction(Function &F)
++it;

#undef LOWER_INTRINSIC
#undef LOWER_WB_INTRINSIC
}
}

Expand Down

0 comments on commit ec77b2b

Please sign in to comment.