Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 564fe6c

Browse files
committed
Revert "Temporary instrumentation in native image loading"
1 parent 3593fba commit 564fe6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pal/src/map/map.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,7 @@ void * MAPMapPEFile(HANDLE hFile)
24392439

24402440
if (MAP_FAILED == loadedBase)
24412441
{
2442-
/* ERROR_(LOADER) */ fprintf(stderr, "mmap failed with code %d: %s.\n", errno, strerror( errno ) );
2442+
ERROR_(LOADER)( "mmap failed with code %d: %s.\n", errno, strerror( errno ) );
24432443
palError = FILEGetLastErrorFromErrno();
24442444
loadedBase = NULL; // clear it so we don't try to use it during clean-up
24452445
goto doneReleaseMappingCriticalSection;
@@ -2475,7 +2475,7 @@ void * MAPMapPEFile(HANDLE hFile)
24752475
(void**)&loadedHeader);
24762476
if (NO_ERROR != palError)
24772477
{
2478-
/* ERROR_(LOADER) */ fprintf(stderr, "mmap of PE header failed\n" );
2478+
ERROR_(LOADER)( "mmap of PE header failed\n" );
24792479
goto doneReleaseMappingCriticalSection;
24802480
}
24812481

@@ -2570,7 +2570,7 @@ void * MAPMapPEFile(HANDLE hFile)
25702570
&sectionData);
25712571
if (NO_ERROR != palError)
25722572
{
2573-
/* ERROR_(LOADER) */ fprintf(stderr, "mmap of section %d failed\n", i );
2573+
ERROR_(LOADER)( "mmap of section %d failed\n", i );
25742574
goto doneReleaseMappingCriticalSection;
25752575
}
25762576

@@ -2633,7 +2633,7 @@ void * MAPMapPEFile(HANDLE hFile)
26332633
else
26342634
{
26352635
retval = NULL;
2636-
/* LOGEXIT */ fprintf(stderr, "MAPMapPEFile error: %d\n", palError);
2636+
LOGEXIT("MAPMapPEFile error: %d\n", palError);
26372637

26382638
// If we had an error, and had mapped anything, we need to unmap it
26392639
if (loadedBase != NULL)

0 commit comments

Comments
 (0)