Tag

heap

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding Heap Memory Management in C: Detailed Guide to malloc and free

This article provides a comprehensive overview of heap memory management in C, explaining the concepts of heap versus stack, the usage and internal mechanisms of malloc and free, common pitfalls such as memory leaks and dangling pointers, and compares these functions with new/delete, calloc, and realloc.

C++Memory Managementfree
0 likes · 29 min read
Understanding Heap Memory Management in C: Detailed Guide to malloc and free
Cognitive Technology Team
Cognitive Technology Team
Mar 25, 2025 · Fundamentals

Understanding the Java Memory Model and Its Interaction with Hardware Memory Architecture

This article explains how the Java Memory Model defines the interaction between threads, thread stacks, and the heap, illustrates these concepts with diagrams and example code, and discusses how modern hardware memory architecture, caches, and CPU registers affect visibility and race conditions in concurrent Java programs.

Hardware ArchitectureJavaMemory Model
0 likes · 11 min read
Understanding the Java Memory Model and Its Interaction with Hardware Memory Architecture
Deepin Linux
Deepin Linux
Feb 27, 2025 · Fundamentals

Understanding malloc and free: Memory Allocation Mechanisms in C

This article explains how the C functions malloc and free allocate and release memory, covering stack vs heap, the brk and mmap system calls, fragmentation, header metadata, and why both allocation strategies are needed for efficient memory management.

C ProgrammingMMAPbrk
0 likes · 17 min read
Understanding malloc and free: Memory Allocation Mechanisms in C
Test Development Learning Exchange
Test Development Learning Exchange
Jan 18, 2025 · Fundamentals

Guide to Learning Python Data Structures: Concepts, Practice, and Advanced Topics

This article provides a step‑by‑step guide to learning Python data structures, covering basic concepts, built‑in types, hands‑on practice, advanced structures, algorithm relationships, resources, community engagement, and continuous self‑challenge to improve problem‑solving skills.

AlgorithmsBFSData Structures
0 likes · 6 min read
Guide to Learning Python Data Structures: Concepts, Practice, and Advanced Topics
Sanyou's Java Diary
Sanyou's Java Diary
Oct 28, 2024 · Fundamentals

Master JVM Memory Troubleshooting: A Step‑by‑Step Guide

This comprehensive guide walks you through systematic JVM memory issue diagnosis, covering initial data collection, analysis of heap, metaspace, direct memory, stack problems, and practical command‑line tools, while offering actionable tips and real‑world examples for effective troubleshooting.

DirectMemoryJVMLinux
0 likes · 56 min read
Master JVM Memory Troubleshooting: A Step‑by‑Step Guide
IT Services Circle
IT Services Circle
Jun 29, 2024 · Fundamentals

Understanding Memory Allocation, Heap Layout, and Fragmentation in C

This article explains how memory allocation works in C, covering the role of malloc, the distinction between code and user data, the compilation and linking process, heap organization, fragmentation, and how the operating system expands the heap when needed.

C ProgrammingOperating Systemfragmentation
0 likes · 6 min read
Understanding Memory Allocation, Heap Layout, and Fragmentation in C
Java Tech Enthusiast
Java Tech Enthusiast
Jun 29, 2024 · Fundamentals

Understanding Memory Allocation in C

The article explains C’s memory allocation, detailing how functions like malloc obtain heap space, the role of system calls such as brk, the distinction between stack and heap, address layout, fragmentation challenges, and practical implications for efficient dynamic memory management.

C ProgrammingMemory ManagementOperating System
0 likes · 5 min read
Understanding Memory Allocation in C
Sanyou's Java Diary
Sanyou's Java Diary
Mar 4, 2024 · Fundamentals

Master JVM Memory Troubleshooting: A Complete Step‑by‑Step Guide

This comprehensive guide presents a systematic, step‑by‑step process for diagnosing JVM memory problems—including heap, Metaspace, DirectMemory, JNI memory, and stack issues—using Alibaba Cloud ARMS, ATP, standard JDK tools, and best‑practice commands to quickly locate root causes and apply effective solutions.

GCJVMJava
0 likes · 56 min read
Master JVM Memory Troubleshooting: A Complete Step‑by‑Step Guide
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Feb 21, 2024 · Fundamentals

Understanding the JVM Memory Model and Its Runtime Data Areas

This article explains the JVM memory model, detailing the five runtime data areas—heap, method area, JVM stack, native method stack, and program counter—along with their structures, configuration parameters, and roles in Java execution and performance tuning.

Garbage CollectionJVMJava
0 likes · 9 min read
Understanding the JVM Memory Model and Its Runtime Data Areas
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 29, 2024 · Backend Development

Design and Implementation of a High‑Performance In‑Memory Cache in Go (MemoryCache)

This article analyzes the shortcomings of existing Go caching libraries, introduces the MemoryCache project, explains its hash‑based bucket design, 4‑ary heap LRU implementation, unified timer strategy, and provides practical usage examples with code snippets for SetWithCallback and GetOrCreateWithCallback.

Gobackendcaching
0 likes · 13 min read
Design and Implementation of a High‑Performance In‑Memory Cache in Go (MemoryCache)
Refining Core Development Skills
Refining Core Development Skills
Jan 23, 2024 · Fundamentals

Deep Dive into the Internal Working of malloc and the ptmalloc Memory Allocator

This article explains how the glibc malloc implementation (ptmalloc) manages memory by using arenas, chunks, and various bin structures such as fastbins, smallbins, largebins, and unsorted bins, and describes the step‑by‑step allocation process performed by public_mALLOc and its helper functions.

C++glibcheap
0 likes · 14 min read
Deep Dive into the Internal Working of malloc and the ptmalloc Memory Allocator
37 Interactive Technology Team
37 Interactive Technology Team
Nov 20, 2023 · Fundamentals

What Are Stack and Heap?

The article explains Go’s stack and heap memory, showing that stack allocations are fast, LIFO‑ordered and compile‑time sized while heap allocations grow upward, require garbage collection, and occur when variables escape a function, urging developers to prefer stack use for better performance.

Garbage CollectionGoStack
0 likes · 6 min read
What Are Stack and Heap?
政采云技术
政采云技术
Dec 13, 2022 · Frontend Development

Understanding the Shape of JavaScript Code in V8 Memory: Stack, Heap, and Constant Pool

This article explains how JavaScript code is represented in V8's memory, covering primitive types, the roles of the stack, heap, and constant pool, as well as function prototypes, variable hoisting, and garbage collection, with clear examples and diagrams.

Constant PoolFunctionsJavaScript
0 likes · 12 min read
Understanding the Shape of JavaScript Code in V8 Memory: Stack, Heap, and Constant Pool
Sanyou's Java Diary
Sanyou's Java Diary
Dec 1, 2022 · Fundamentals

Mastering JVM Memory: From Heap to Metaspace and Beyond

This article provides a comprehensive overview of the Java Virtual Machine memory architecture, covering heap layout, object allocation, Metaspace, stack frames, native method stacks, program counters, direct memory, and code cache, complete with configuration tips and practical code examples.

Garbage CollectionJVMJava
0 likes · 18 min read
Mastering JVM Memory: From Heap to Metaspace and Beyond
Top Architect
Top Architect
Jul 30, 2022 · Fundamentals

Understanding JVM Memory Layout: Heap, Metaspace, Stacks and Program Counter Register

This article explains the JVM memory layout, covering the heap (young and old generations), Metaspace, virtual machine stacks, native method stacks, and the program‑counter register, while describing their roles, configuration parameters and how they interact during garbage collection and method execution.

Garbage CollectionJVMJava
0 likes · 14 min read
Understanding JVM Memory Layout: Heap, Metaspace, Stacks and Program Counter Register
TAL Education Technology
TAL Education Technology
Jul 1, 2022 · Fundamentals

Why the JVM Can Run Cross‑Platform and an In‑Depth Look at Its Internal Architecture

This article explains how the Java Virtual Machine achieves write‑once‑run‑anywhere by abstracting platform differences, then details the JVM’s internal components—including the class‑loader subsystem, runtime data areas such as heap, stack, method area, and program counter—followed by code examples and analysis of object layout, pointer compression, and memory allocation strategies.

Garbage CollectionJVMJava
0 likes · 30 min read
Why the JVM Can Run Cross‑Platform and an In‑Depth Look at Its Internal Architecture
Top Architect
Top Architect
Jun 24, 2022 · Fundamentals

Understanding JVM Memory Layout: Heap, Metaspace, Stacks, and Program Counter

This article explains the JVM memory architecture, covering the heap (young and old generations, Eden and Survivor spaces), Metaspace, virtual machine stacks, native method stacks, and the program counter register, while also illustrating key JVM parameters and bytecode execution with examples.

Garbage CollectionJVMJava
0 likes · 13 min read
Understanding JVM Memory Layout: Heap, Metaspace, Stacks, and Program Counter
Refining Core Development Skills
Refining Core Development Skills
Apr 1, 2022 · Fundamentals

Stack vs Heap Memory Allocation: Speed Comparison and Implementation Details

This article explains how memory allocation on the stack is faster than on the heap, demonstrates the process with assembly instructions, provides benchmark code comparing allocation speeds, discusses compiler optimizations, and outlines the differences, advantages, and pitfalls of stack and heap memory usage.

C++Compiler OptimizationStack
0 likes · 9 min read
Stack vs Heap Memory Allocation: Speed Comparison and Implementation Details
Top Architect
Top Architect
Oct 6, 2021 · Fundamentals

Understanding JVM Memory Layout and Allocation

This article provides a comprehensive overview of the Java Virtual Machine memory architecture, covering heap layout, allocation, tuning parameters, garbage collection, stack frames, method area, metaspace, native method stack, program counter, direct memory, and code cache, with practical code examples and diagnostics.

JVMJavaMemory Management
0 likes · 16 min read
Understanding JVM Memory Layout and Allocation