Skip to content

Commit 6290b6c

Browse files
monojenkinsakoeplinger
authored andcommitted
Temporarily disable embedded ppdb data decompression (#16911)
Backport of #16868.
1 parent a0e7f9e commit 6290b6c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

mono/metadata/debug-mono-ppdb.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@ mono_ppdb_load_file (MonoImage *image, const guint8 *raw_contents, int size)
172172
return NULL;
173173
}
174174

175+
// Temporarily disabled to unblock Roslyn
176+
#if HOST_WIN32 //|| HAVE_SYS_ZLIB
175177
if (ppdb_data) {
176178
/* Embedded PPDB data */
177-
#if HAVE_SYS_ZLIB || HOST_WIN32
178179
/* ppdb_size is the uncompressed size */
179180
guint8 *data = g_malloc0 (ppdb_size);
180181
z_stream stream;
@@ -194,8 +195,8 @@ mono_ppdb_load_file (MonoImage *image, const guint8 *raw_contents, int size)
194195
raw_contents = data;
195196
size = ppdb_size;
196197
to_free = data;
197-
#endif
198198
}
199+
#endif
199200

200201
MonoAssemblyLoadContext *alc = mono_image_get_alc (image);
201202
if (raw_contents) {

mono/metadata/metadata-internals.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,11 @@ typedef struct {
330330
void *raw_data_handle;
331331
char *raw_data;
332332
guint32 raw_data_len;
333+
/* data was allocated with mono_file_map and must be unmapped */
333334
guint8 raw_buffer_used : 1;
335+
/* data was allocated with malloc and must be freed */
334336
guint8 raw_data_allocated : 1;
337+
/* data was allocated with mono_file_map_fileio */
335338
guint8 fileio_used : 1;
336339

337340
#ifdef HOST_WIN32

0 commit comments

Comments
 (0)