runc icon indicating copy to clipboard operation
runc copied to clipboard

refactor: move some c code to go

Open lifubang opened this issue 2 months ago • 0 comments

As mentioned in #3951 , we want to move c code to golang, there are many hard works to do.

This PR has done the first step, move all the stage-1 c code and some of the stage-2 c code to go code, because they are not related to namespaces, they should be implemented by golang.

This refactor brings one benifit, it reduces one process clone when start/run/create a container. But because the stage-1 c code is hard to move to go code, so it brings a Complexity for libct/nsenter, for example, it's hard to write unit tests for nsenter.

Welcome more suggestions.

lifubang avatar Jun 05 '24 10:06 lifubang