12
12
//
13
13
// ============================================================
14
14
15
- #ifndef FEATURE_CORESYSTEM
16
- #define DISABLE_BINDER_DEBUG_LOGGING
17
- #endif
18
-
19
15
#include " applicationcontext.hpp"
20
16
#include " stringarraylist.h"
21
17
#include " loadcontext.hpp"
22
18
#include " propertymap.hpp"
23
19
#include " failurecache.hpp"
24
20
#include " assemblyidentitycache.hpp"
25
- #ifdef FEATURE_VERSIONING_LOG
26
- #include " debuglog.hpp"
27
- #endif // FEATURE_VERSIONING_LOG
28
21
#include " utils.hpp"
29
22
#include " variables.hpp"
30
23
#include " ex.h"
@@ -111,8 +104,6 @@ namespace BINDER_SPACE
111
104
HRESULT ApplicationContext::Init ()
112
105
{
113
106
HRESULT hr = S_OK;
114
- BINDER_LOG_ENTER (W (" ApplicationContext::Init" ));
115
- BINDER_LOG_POINTER (W (" this" ), this );
116
107
117
108
ReleaseHolder<ExecutionContext> pExecutionContext;
118
109
@@ -141,7 +132,6 @@ namespace BINDER_SPACE
141
132
}
142
133
143
134
Exit:
144
- BINDER_LOG_LEAVE_HR (W (" ApplicationContext::Init" ), hr);
145
135
return hr;
146
136
}
147
137
@@ -220,21 +210,15 @@ namespace BINDER_SPACE
220
210
BOOL fAcquireLock )
221
211
{
222
212
HRESULT hr = S_OK;
223
- BINDER_LOG_ENTER (W (" ApplicationContext::SetupBindingPaths" ));
224
- BINDER_LOG_POINTER (W (" this" ), this );
225
213
226
214
#ifndef CROSSGEN_COMPILE
227
215
CRITSEC_Holder contextLock (fAcquireLock ? GetCriticalSectionCookie () : NULL );
228
216
#endif
229
217
if (m_pTrustedPlatformAssemblyMap != nullptr )
230
218
{
231
- #if defined(BINDER_DEBUG_LOG)
232
- BINDER_LOG (W (" ApplicationContext::SetupBindingPaths: Binding paths already setup" ));
233
- #endif // BINDER_LOG_STRING
234
219
GO_WITH_HRESULT (S_OK);
235
220
}
236
221
237
-
238
222
//
239
223
// Parse TrustedPlatformAssemblies
240
224
//
@@ -256,7 +240,6 @@ namespace BINDER_SPACE
256
240
#ifndef CROSSGEN_COMPILE
257
241
if (Path::IsRelative (fileName))
258
242
{
259
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Relative path not allowed" ), fileName);
260
243
GO_WITH_HRESULT (E_INVALIDARG);
261
244
}
262
245
#endif
@@ -329,7 +312,6 @@ namespace BINDER_SPACE
329
312
if ((pExistingEntry->m_wszILFileName != nullptr && !isNativeImage) ||
330
313
(pExistingEntry->m_wszNIFileName != nullptr && isNativeImage))
331
314
{
332
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Skipping TPA entry because of already existing IL/NI entry for short name " ), fileName.GetUnicode ());
333
315
continue ;
334
316
}
335
317
}
@@ -374,8 +356,6 @@ namespace BINDER_SPACE
374
356
FileNameMapEntry fileNameExistenceEntry;
375
357
fileNameExistenceEntry.m_wszFileName = wszFileName;
376
358
m_pFileNameHash->AddOrReplace (fileNameExistenceEntry);
377
-
378
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Added TPA entry" ), wszFileName);
379
359
}
380
360
381
361
//
@@ -396,13 +376,11 @@ namespace BINDER_SPACE
396
376
#ifndef CROSSGEN_COMPILE
397
377
if (Path::IsRelative (pathName))
398
378
{
399
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Relative path not allowed" ), pathName);
400
379
GO_WITH_HRESULT (E_INVALIDARG);
401
380
}
402
381
#endif
403
382
404
383
m_platformResourceRoots.Append (pathName);
405
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Added resource root" ), pathName);
406
384
}
407
385
408
386
//
@@ -423,13 +401,11 @@ namespace BINDER_SPACE
423
401
#ifndef CROSSGEN_COMPILE
424
402
if (Path::IsRelative (pathName))
425
403
{
426
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Relative path not allowed" ), pathName);
427
404
GO_WITH_HRESULT (E_INVALIDARG);
428
405
}
429
406
#endif
430
407
431
408
m_appPaths.Append (pathName);
432
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Added App Path" ), pathName);
433
409
}
434
410
435
411
//
@@ -450,26 +426,21 @@ namespace BINDER_SPACE
450
426
#ifndef CROSSGEN_COMPILE
451
427
if (Path::IsRelative (pathName))
452
428
{
453
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Relative path not allowed" ), pathName);
454
429
GO_WITH_HRESULT (E_INVALIDARG);
455
430
}
456
431
#endif
457
432
458
433
m_appNiPaths.Append (pathName);
459
- BINDER_LOG_STRING (W (" ApplicationContext::SetupBindingPaths: Added App NI Path" ), pathName);
460
434
}
461
435
462
436
Exit:
463
- BINDER_LOG_LEAVE_HR (W (" ApplicationContext::SetupBindingPaths" ), hr);
464
437
return hr;
465
438
}
466
439
467
440
HRESULT ApplicationContext::GetAssemblyIdentity (LPCSTR szTextualIdentity,
468
441
AssemblyIdentityUTF8 **ppAssemblyIdentity)
469
442
{
470
443
HRESULT hr = S_OK;
471
- BINDER_LOG_ENTER (W (" ApplicationContext::GetAssemblyIdentity" ));
472
- BINDER_LOG_POINTER (W (" this" ), this );
473
444
474
445
_ASSERTE (szTextualIdentity != NULL );
475
446
_ASSERTE (ppAssemblyIdentity != NULL );
@@ -496,7 +467,6 @@ namespace BINDER_SPACE
496
467
*ppAssemblyIdentity = pAssemblyIdentity;
497
468
498
469
Exit:
499
- BINDER_LOG_LEAVE_HR (W (" ApplicationContext::GetAssemblyIdentity" ), hr);
500
470
return hr;
501
471
}
502
472
0 commit comments