* hazard-pointer.c (is_pointer_hazardous): Reads between the hazard
pointers of a given thread must be ordered since code such as the
liked-list-set that does centipede traversal needs it to be correct.
#include <mono/metadata/class-internals.h>
#include <mono/utils/hazard-pointer.h>
#include <mono/utils/mono-membar.h>
+#include <mono/utils/mono-memory-model.h>
#include <mono/utils/mono-mmap.h>
#include <mono/utils/monobitset.h>
#include <mono/utils/mono-threads.h>
for (j = 0; j < HAZARD_POINTER_COUNT; ++j) {
if (hazard_table [i].hazard_pointers [j] == p)
return TRUE;
+ LOAD_LOAD_FENCE;
}
}