Practice mode C#

By default, objects of what size are allocated on the .NET large object heap (LOH)?

Correct answer D. 85,000 bytes or larger

Explanation

The runtime places objects of 85,000 bytes or more, most often large arrays, on the large object heap. The LOH is collected together with generation 2 and is not compacted by default, because moving big blocks of memory is expensive. Allocating many short-lived large arrays can therefore cause fragmentation and costly full collections, which is why buffer pooling is often recommended.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.