Top "Heap" questions

A heap (data structure) is a tree that is ordered with respect to depth.

What's the differences between VirtualAlloc and HeapAlloc?

There are lots of method to allocate memory in Windows environment, such as VirtualAlloc, HeapAlloc, malloc, new. Thus, what's the …

winapi memory heap new-operator
Examining C/C++ Heap memory statistics in gdb

I'm trying to investigate the state of the C/C++ heap from within gdb on Linux amd64, is there a …

linux gdb malloc heap x86-64
Invalid heap address and fatal signal 11

Every so often my app will crash and my log will read: @@@ ABORTING: INVALID HEAP ADDRESS IN dlfree Fatal signal 11 (…

android android-asynctask heap
what is VIRT column in HTOP? memory overhead?

What means the column VIRT in this HTOP output? It appears in red color and bolded. I'm running an elasticsearch …

memory heap
Is accessing data in the heap faster than from the stack?

I know this sounds like a general question and I've seen many similar questions (both here and on the web) …

c++ c performance stack heap
How to implement O(logn) decrease-key operation for min-heap based Priority Queue?

I am working on an application that demonstrates the Djikstra's algorithm, and to use it, I need to restore the …

algorithm heap priority-queue decrease-key
How to implement Priority Queues in Python?

Sorry for such a silly question but Python docs are confusing.. . Link 1: Queue Implementation http://docs.python.org/library/queue.…

python queue heap priority-queue
Implement Heap using a Binary Tree

This question has been asked before in Stack Exchange but it went unanswered. Link to the previously asked question: Binary …

java heap binary-tree
Is a Java array of primitives stored in stack or heap?

I have an array declaration like this: int a[]; Here a is an array of primitive int type. Where is …

java arrays stack heap primitive-types
What is the "Break instruction exception" in WinDbg?

I'm debugging some random crash bugs, but actually very difficult to go deep into. Because when i open crash dump, …

windows heap windbg breakpoints corruption