runtime: work around a clang bug triggered by defrag_immobile_space
commit6b21a1f5a7c0dcb34689a26a3ed54d2f6a9e5414
authorJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Thu, 24 Nov 2016 19:33:17 +0000 (24 20:33 +0100)
committerJan Moringen <jmoringe@techfak.uni-bielefeld.de>
Thu, 24 Nov 2016 19:41:44 +0000 (24 20:41 +0100)
tree3e7e8ef19753deede8214ee56e7c485024f777c9
parent9d32537573afa85158d92324b11e6d500dae3920
runtime: work around a clang bug triggered by defrag_immobile_space

For clang version 6.0, define

  #define _FORTIFY_SOURCE 0

to work around a miscompilation of a memcpy call.

Douglas Katzman contributed most of the expertise when debugging this
issue.
src/runtime/marknsweepgc.c