Table of Contents

Class DeadCodeEliminationHelper

Namespace
BenchmarkDotNet.Engines
Assembly
BenchmarkDotNet.dll
public static class DeadCodeEliminationHelper
Inheritance
DeadCodeEliminationHelper

Methods

KeepAliveWithoutBoxingReadonly<T>(in T)

This method can't get inlined, so any value send to it will not get eliminated by the dead code elimination it's not called KeepAliveWithoutBoxing because compiler would not be able to diff ref and in

public static void KeepAliveWithoutBoxingReadonly<T>(in T value)

Parameters

value T

Type Parameters

T

KeepAliveWithoutBoxing<T>(T)

This method can't get inlined, so any value send to it will not get eliminated by the dead code elimination

public static void KeepAliveWithoutBoxing<T>(T value)

Parameters

value T

Type Parameters

T

KeepAliveWithoutBoxing<T>(ref T)

This method can't get inlined, so any value send to it will not get eliminated by the dead code elimination

public static void KeepAliveWithoutBoxing<T>(ref T value)

Parameters

value T

Type Parameters

T