Skip to content

Commit

Permalink
Rename cgroup.cpp to cgroupcpu.cpp (#83029)
Browse files Browse the repository at this point in the history
* Revert "Revert "Enable symbol stripping for crossgen2 (#82698)" (#82881)"

This reverts commit 13853e5.

* Rename cgroup.cpp to cgroupcpu.cpp
  • Loading branch information
am11 authored Mar 8, 2023
1 parent d3c8380 commit 0e1ede5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/nativeaot/Runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ else()
)

list(APPEND FULL_RUNTIME_SOURCES
unix/cgroup.cpp
unix/cgroupcpu.cpp
unix/HardwareExceptions.cpp
unix/UnixContext.cpp
unix/UnixSignals.cpp
Expand Down
2 changes: 0 additions & 2 deletions src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ void ConfigureSignals()
signal(SIGPIPE, SIG_IGN);
}

extern bool GetCpuLimit(uint32_t* val);

void InitializeCurrentProcessCpuCount()
{
uint32_t count;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,6 @@ void InitializeCpuCGroup()
CGroup::Initialize();
}

void CleanupCpuCGroup()
{
CGroup::Cleanup();
}

bool GetCpuLimit(uint32_t* val)
{
if (val == nullptr)
Expand Down
4 changes: 1 addition & 3 deletions src/coreclr/nativeaot/Runtime/unix/cgroupcpu.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.


#ifndef __CGROUPCPU_H__
#define __CGROUPCPU_H__

void InitializeCpuCGroup();
void CleanupCpuCGroup();
bool GetCpuLimit(uint32_t* val);

#endif // __CGROUPCPU_H__

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<NativeAotSupported Condition="'$(CrossBuild)' == 'true' and '$(TargetOS)' != '$(HostOS)'">false</NativeAotSupported>
<!-- Can't use NativeAOT in source build yet https://github.com/dotnet/runtime/issues/66859 -->
<NativeAotSupported Condition="'$(DotNetBuildFromSource)' == 'true'">false</NativeAotSupported>
<ObjCopyName Condition="'$(ContinuousIntegrationBuild)' == 'true' and '$(CrossBuild)' == 'true' and '$(RuntimeIdentifier)' == 'linux-musl-arm64'">llvm-objcopy-15</ObjCopyName>
<ObjCopyName Condition="'$(ContinuousIntegrationBuild)' == 'true' and '$(CrossBuild)' == 'true' and '$(RuntimeIdentifier)' == 'linux-arm64'">aarch64-linux-gnu-objcopy</ObjCopyName>
</PropertyGroup>

<Target Name="PublishCrossgen"
Expand All @@ -33,7 +35,7 @@
DestinationFolder="$(MicrosoftNetCoreAppRuntimePackNativeDir)"
SkipUnchangedFiles="true" />

<MSBuild Projects="$(RepoRoot)src/coreclr/tools/aot/crossgen2/crossgen2.csproj"
<MSBuild Projects="$(RepoRoot)src/coreclr/tools/aot/crossgen2/crossgen2.csproj"
Targets="Restore"
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid())
;_IsPublishing=true
Expand All @@ -48,6 +50,8 @@
;RuntimeIdentifier=$(PackageRID)
;NativeAotSupported=$(NativeAotSupported)
;CoreCLRArtifactsPath=$(CoreCLRArtifactsPath)
;StripSymbols=true
;ObjCopyName=$(ObjCopyName)
;R2ROverridePath=$(MSBuildThisFileDirectory)ReadyToRun.targets">
<Output TaskParameter="TargetOutputs"
ItemName="_RawCrossgenPublishFiles" />
Expand Down

0 comments on commit 0e1ede5

Please sign in to comment.