Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mono/metadata/debug-mono-ppdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ mono_ppdb_load_file (MonoImage *image, const guint8 *raw_contents, int size)
return NULL;
}

// Temporarily disabled to unblock Roslyn
#if HOST_WIN32 //|| HAVE_SYS_ZLIB
if (ppdb_data) {
/* Embedded PPDB data */
#if HAVE_SYS_ZLIB || HOST_WIN32
/* ppdb_size is the uncompressed size */
guint8 *data = g_malloc0 (ppdb_size);
z_stream stream;
Expand All @@ -194,8 +195,8 @@ mono_ppdb_load_file (MonoImage *image, const guint8 *raw_contents, int size)
raw_contents = data;
size = ppdb_size;
to_free = data;
#endif
}
#endif

MonoAssemblyLoadContext *alc = mono_image_get_alc (image);
if (raw_contents) {
Expand Down
3 changes: 3 additions & 0 deletions mono/metadata/metadata-internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,11 @@ typedef struct {
void *raw_data_handle;
char *raw_data;
guint32 raw_data_len;
/* data was allocated with mono_file_map and must be unmapped */
guint8 raw_buffer_used : 1;
/* data was allocated with malloc and must be freed */
guint8 raw_data_allocated : 1;
/* data was allocated with mono_file_map_fileio */
guint8 fileio_used : 1;

#ifdef HOST_WIN32
Expand Down