File tree Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,8 @@ void FinalizerThread::FinalizeAllObjects()
125
125
126
126
void FinalizerThread::WaitForFinalizerEvent (CLREvent *event)
127
127
{
128
- // Non-host environment
129
-
130
128
// We don't want kLowMemoryNotification to starve out kFinalizer
131
- // (as the latter may help correct the former), and we don't want either
132
- // to starve out kProfilingAPIAttach, as we want decent responsiveness
133
- // to a user trying to attach a profiler. So check in this order:
134
- // kProfilingAPIAttach alone (0 wait)
129
+ // (as the latter may help correct the former). So check in this order:
135
130
// kFinalizer alone (2s wait)
136
131
// all events together (infinite wait)
137
132
@@ -162,7 +157,6 @@ void FinalizerThread::WaitForFinalizerEvent (CLREvent *event)
162
157
//
163
158
// * kLowMemoryNotification (if it's non-NULL && g_fEEStarted)
164
159
// * kFinalizer (always)
165
- // * kProfilingAPIAttach (if it's non-NULL)
166
160
//
167
161
// The enum code:MHandleType values become important here, as
168
162
// WaitForMultipleObjects needs to wait on a contiguous set of non-NULL
Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ void ProfilerDetachInfo::Init()
55
55
}
56
56
57
57
58
- // ----------------------------------------------------------------------------
59
- // Implementation of ProfilingAPIAttachDetach statics
60
-
61
58
62
59
// ----------------------------------------------------------------------------
63
60
// ProfilingAPIDetach::Initialize
Original file line number Diff line number Diff line change @@ -411,13 +411,6 @@ EXTERN_C void STDMETHODCALLTYPE ProfileTailcallNaked(UINT_PTR clientData);
411
411
// Notes:
412
412
// This function (or one of its callees) will log an error to the event log
413
413
// if there is a failure
414
- //
415
- // Assumptions:
416
- // InitializeProfiling is called during startup, AFTER the host has initialized its
417
- // settings and the config variables have been read, but BEFORE the finalizer thread
418
- // has entered its first wait state. ASSERTs are placed in
419
- // code:ProfilingAPIAttachDetach::Initialize (which is called by this function, and
420
- // which depends on these assumptions) to verify.
421
414
422
415
// static
423
416
HRESULT ProfilingAPIUtility::InitializeProfiling ()
You can’t perform that action at this time.
0 commit comments