Managed and Unmanaged Heap

What is an unmanaged heap?

I thought that any CLR-managed object memory was heap-controlled, so why are we talking about unmanaged heap?

+5
source share
3 answers

Imagine calling a Win32 function using P / Invoke and allocating some memory with malloc. The garbage collector does not have the visibility of this memory - it is unmanaged.

This may or may not be the context in which you, of course, have heard this term - if you can point out some examples to us, we can help you more.

+10
source

John Skeet - managed - , .net , , , .

unmanaged , , , , .

, , ( , , ) . , - , .

+6

.net, , .

.net framework , . , . , .

- , / . , . "" ""

0

All Articles