Skip to content

Commit d735272

Browse files
author
Michael DeRoy
committed
Don't flush buffers explicitly. let the file cache do that since it should most of the time flush before the plugin reads it anway
1 parent 2b30167 commit d735272

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)