Skip to content

Commit

Permalink
Temporarily disable embedded ppdb data decompression (#16911)
Browse files Browse the repository at this point in the history
Backport of #16868.
  • Loading branch information
monojenkins authored and akoeplinger committed Sep 18, 2019
1 parent a0e7f9e commit 6290b6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit 6290b6c

Please sign in to comment.