Merge pull request #941 from upsilon/fix-layoutsettings-setter
[mono.git] / mono / metadata / sgen-protocol.c
index 60feed2d372b96a3ccf7e1a6087e0d53b3e78868..c41df40339f927a4f140231ec7317e9f020a468c 100644 (file)
@@ -27,6 +27,7 @@
 #include "sgen-protocol.h"
 #include "sgen-memory-governor.h"
 #include "utils/mono-mmap.h"
+#include "utils/mono-threads.h"
 
 #ifdef SGEN_BINARY_PROTOCOL
 
@@ -180,6 +181,9 @@ protocol_entry (unsigned char type, gpointer data, int size)
        if (!binary_protocol_file)
                return;
 
+       if (sgen_is_worker_thread (mono_native_thread_id_get ()))
+               type |= 0x80;
+
        lock_recursive ();
 
  retry: