Skip to content

Commit 3bc9017

Browse files
authored
Merge pull request #845 from Unity-Technologies/unity-master-dont-flush-plugin
[Mixed Callstack Plugin]Don't flush the file buffers.
2 parents 16f0741 + d735272 commit 3bc9017

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mono/mini/mixed_callstack_plugin.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ mixed_callstack_plugin_save_method_info (MonoCompile *cfg)
8686

8787
mixed_callstack_plugin_lock ();
8888
WriteFile(fileHandle, frame, bytes, &bytesWritten, NULL);
89-
FlushFileBuffers(fileHandle);
9089
mixed_callstack_plugin_unlock ();
9190

9291
g_free(method_name);
@@ -109,7 +108,6 @@ mixed_callstack_plugin_save_trampoline_info (MonoTrampInfo *info)
109108
mixed_callstack_plugin_lock ();
110109
frame = g_strdup_printf ("%p;%p;%s\n", info->code, ((char*)info->code) + info->code_size, info->name ? info->name : "");
111110
WriteFile(fileHandle, frame, strlen(frame), &bytesWritten, NULL);
112-
FlushFileBuffers(fileHandle);
113111
mixed_callstack_plugin_unlock ();
114112

115113
g_free(frame);

0 commit comments

Comments
 (0)