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

Commit

Permalink
Cleanup (#27502)
Browse files Browse the repository at this point in the history
* Delete empty FireCustomerDebugProbe FCall

* Delete duplicate C++ compiler command line options
  • Loading branch information
jkotas authored Oct 28, 2019
1 parent 5075054 commit 8460516
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 42 deletions.
4 changes: 1 addition & 3 deletions configurecompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ if (CLR_CMAKE_PLATFORM_UNIX)
add_compile_options(-fno-omit-frame-pointer)

# The -fms-extensions enable the stuff like __if_exists, __declspec(uuid()), etc.
add_compile_options(-fms-extensions )
add_compile_options(-fms-extensions)
#-fms-compatibility Enable full Microsoft Visual C++ compatibility
#-fms-extensions Accept some non-standard constructs supported by the Microsoft compiler

Expand Down Expand Up @@ -511,9 +511,7 @@ if (CLR_CMAKE_PLATFORM_UNIX)
# may not generate the same object layout as MSVC.
add_compile_options(-Wno-incompatible-ms-struct)
else()
add_compile_options(-Wno-unused-variable)
add_compile_options(-Wno-unused-but-set-variable)
add_compile_options(-fms-extensions)
add_compile_options(-Wno-unknown-pragmas)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
add_compile_options(-Wno-nonnull-compare)
Expand Down
1 change: 0 additions & 1 deletion src/System.Private.CoreLib/System.Private.CoreLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\TypeDependencyAttribute.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\GCSettings.CoreCLR.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\ComTypes\IEnumerable.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\CriticalHandle.CoreCLR.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\Expando\IExpando.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\GCHandle.CoreCLR.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\Marshal.CoreCLR.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ private void Cleanup()
// occur implicitly as part of unmarshaling another P/Invoke).
int lastError = Marshal.GetLastWin32Error();

if (!ReleaseHandle())
ReleaseHandleFailed();
ReleaseHandle();

Marshal.SetLastWin32Error(lastError);
GC.SuppressFinalize(this);
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions src/vm/ecalllist.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ FCFuncStart(gExceptionFuncs)
FCFuncElement("GetExceptionCount", ExceptionNative::GetExceptionCount)
FCFuncEnd()

FCFuncStart(gCriticalHandleFuncs)
FCFuncElement("ReleaseHandleFailed", CriticalHandle::FireCustomerDebugProbe)
FCFuncEnd()

FCFuncStart(gTypedReferenceFuncs)
FCFuncElement("InternalToObject", ReflectionInvocation::TypedReferenceToObject)
FCFuncElement("InternalMakeTypedReference", ReflectionInvocation::MakeTypedReference)
Expand Down Expand Up @@ -1217,7 +1213,6 @@ FCClassElement("AssemblyName", "System.Reflection", gAssemblyNameFuncs)
FCClassElement("Buffer", "System", gBufferFuncs)
FCClassElement("CLRConfig", "System", gClrConfig)
FCClassElement("CompatibilitySwitch", "System.Runtime.Versioning", gCompatibilitySwitchFuncs)
FCClassElement("CriticalHandle", "System.Runtime.InteropServices", gCriticalHandleFuncs)
FCClassElement("CustomAttribute", "System.Reflection", gCOMCustomAttributeFuncs)
FCClassElement("CustomAttributeEncodedArgument", "System.Reflection", gCustomAttributeEncodedArgument)
FCClassElement("DateTime", "System", gDateTimeFuncs)
Expand Down
2 changes: 0 additions & 2 deletions src/vm/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -2128,8 +2128,6 @@ class CriticalHandle : public Object
static size_t GetHandleOffset() { LIMITED_METHOD_CONTRACT; return offsetof(CriticalHandle, m_handle); }

void SetHandle(LPVOID handle) { LIMITED_METHOD_CONTRACT; m_handle = handle; }

static FCDECL1(void, FireCustomerDebugProbe, CriticalHandle* refThisUNSAFE);
};


Expand Down
14 changes: 0 additions & 14 deletions src/vm/safehandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,3 @@ void SafeHandle::RunReleaseMethod(SafeHandle* psh)

GCPROTECT_END();
}

FCIMPL1(void, CriticalHandle::FireCustomerDebugProbe, CriticalHandle* refThisUNSAFE)
{
FCALL_CONTRACT;

CRITICALHANDLEREF ch(refThisUNSAFE);

HELPER_METHOD_FRAME_BEGIN_1(ch);

FCUnique(0x53);

HELPER_METHOD_FRAME_END();
}
FCIMPLEND

0 comments on commit 8460516

Please sign in to comment.