Gang Of Coders
Home
About Us
Contact Us
All Memory Management Solutions on Gang of Coders
Total of 226 Memory Management Solutions
What and where are the stack and heap?
Memory Management
Stack
Language Agnostic
Dynamic Memory-Allocation
Heap Memory
What are the -Xms and -Xmx parameters when starting JVM?
Java
Memory Management
Parameters
Jvm
Can a local variable's memory be accessed outside its scope?
C++
Memory Management
Local Variables
Dangling Pointer
Why should C++ programmers minimize use of 'new'?
C++
Memory Management
Heap Memory
New Operator
C++ Faq
How do I determine the size of an object in Python?
Python
Object
Memory
Memory Management
Sizeof
How do I discover memory usage of my application in Android?
Java
Android
Memory
Memory Management
Why is my program slow when looping over exactly 8192 elements?
C++
Performance
Memory Management
Gcc
Which Python memory profiler is recommended?
Python
Performance
Memory Management
Profiling
In what cases do I use malloc and/or new?
C++
Memory Management
Malloc
New Operator
What is private bytes, virtual bytes, working set?
Debugging
Memory Leaks
Operating System
Memory Management
How can I explicitly free memory in Python?
Python
Memory
Memory Management
Tricks to manage the available memory in an R session
Memory Management
R
What uses are there for "placement new"?
C++
Memory Management
New Operator
Placement New
How to allocate aligned memory only using the standard library?
C
Memory Management
Peak memory usage of a linux/unix process
Linux
Command Line
Memory Management
Deleting Objects in JavaScript
Javascript
Pointers
Object
Memory Management
Garbage Collection
Total memory used by Python process?
Python
Memory Management
How to check if pytorch is using the GPU?
Python
Memory Management
Gpu
Nvidia
Pytorch
Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php
Php
Memory Management
Memory Limit
Is it safe to delete a NULL pointer?
C++
Pointers
Memory Management
Null Pointer
Delete Operator
How to Free Inode Usage?
Linux
Unix
Memory Management
Inode
Does using "new" on a struct allocate it on the heap or stack?
C#
.Net
Memory Management
How do malloc() and free() work?
C++
C
Memory Management
Malloc
Free
What is the difference between new/delete and malloc/free?
C++
Memory Management
C++ new int[0] -- will it allocate memory?
C++
Memory Management
New Operator
Standards Compliance
What is the difference between a weak reference and an unowned reference?
Swift
Memory Management
Automatic Ref-Counting
Weak References
Dangling Pointer
Is "delete this" allowed in C++?
C++
Memory Management
New Operator
Delete Operator
Self Destruction
What does the brk() system call do?
C
Linux
Unix
Memory Management
Brk
@property retain, assign, copy, nonatomic in Objective-C
Ios
Objective C
Iphone
Memory Management
Python memory leaks
Python
Debugging
Memory Management
Memory Leaks
Why is @autoreleasepool still needed with ARC?
Objective C
Memory Management
xcode4.2
Automatic Ref-Counting
Retrieve CPU usage and memory usage of a single process on Linux?
Linux
Shell
Memory Management
Cpu Usage
Compelling examples of custom C++ allocators?
C++
Memory Management
Std
Memory Alignment
Allocator
Setting Objects to Null/Nothing after use in .NET
C#
.Net
vb.net
Memory Management
Null
Where in memory are my variables stored in C?
C
Memory
Memory Management
Types
How to initialise memory with new operator in C++?
C++
Initialization
Memory Management
New Operator
Attempted to read or write protected memory. This is often an indication that other memory is corrupt
C#
.Net
Multithreading
Memory Management
R memory management / cannot allocate vector of size n Mb
R
Matrix
Vector
Memory Management
R Faq
What does "Memory allocated at compile time" really mean?
C++
C
Memory
Memory Management
Terminology
delete vs delete[] operators in C++
C++
Memory Management
Delete Operator
Calculate size of Object in Java
Java
Memory
Memory Management
Data Structures
Does delete on a pointer to a subclass call the base class destructor?
C++
Memory Management
Destructor
Delete Operator
Base Class
Retain cycle on `self` with blocks
Objective C
Memory Management
Objective C-Blocks
ios app maximum memory budget
Iphone
Ios
Memory
Memory Management
Implementing IDisposable correctly
C#
.Net
Memory Management
Memory Leaks
Garbage Collection
Why do two identical lists have a different memory footprint?
Python
List
Memory Management
Python Internals
How to get memory available or used in C#
C#
Memory Management
Memory address of variables in Java
Java
Memory Management
Jvm
Hashcode
Memory Address
Is there a way to delete created variables, functions, etc from the memory of the interpreter?
Python
Memory Management
Dir
What is the maximum amount of RAM an app can use?
Android
Memory
Memory Management
Out of-Memory
Android Memory
How to set the maximum memory usage for JVM?
Java
Memory
Memory Management
Memory Leaks
Profiling
Releasing memory in Python
Python
Memory Management
What strategies and tools are useful for finding memory leaks in .NET?
C#
.Net
Memory Management
Memory Leaks
Increasing (or decreasing) the memory available to R processes
R
Memory Management
Memory Leaks
Why would you use an ivar?
Objective C
Ios
Memory Management
Key Value-Observing
Ivar
When and why will a compiler initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete?
C++
C
Memory
Memory Management
C++, Free-Store vs Heap
C++
Memory Management
Reducing Django Memory Usage. Low hanging fruit?
Python
Django
Profiling
Memory Management
Mod Python
Does free(ptr) where ptr is NULL corrupt memory?
C
Pointers
Memory Management
Null
Free
Why doesn't delete set the pointer to NULL?
C++
Memory Management
Delete Operator
Android Studio - How to increase Allocated Heap Size
Android
Memory Management
Crash
Out of-Memory
Android Studio
What is the meaning of the term arena in relation to memory?
C++
C
Memory Management
Terminology
General guidelines to avoid memory leaks in C++
C++
Memory
Memory Management
Raii
What does Visual Studio do with a deleted pointer and why?
C++
Pointers
Visual Studio-2012
Memory Management
Delete Operator
Proper stack and heap usage in C++?
C++
Memory Management
Stack
Heap Memory
C++ Faq
Memory footprint of Haskell data types
Haskell
Memory Management
Ghc
Algebraic Data-Types
Why does the delete[] syntax exist in C++?
C++
Memory Management
Syntax
Language Lawyer
Standards
What are the differences between virtual memory and physical memory?
Memory Management
Operating System
Virtualization
Ram
Virtual Memory
What does Rust have instead of a garbage collector?
Memory
Rust
Memory Management
static allocation in java - heap, stack and permanent generation
Java
Static
Memory Management
Permanent Generation
Is volatile expensive?
Java
Memory Management
Concurrency
Volatile
In which situations do we need to write the __autoreleasing ownership qualifier under ARC?
Objective C
Ios
Memory Management
Automatic Ref-Counting
Smart pointers: who owns the object?
C++
Memory Management
Smart Pointers
Ownership Semantics
How to get current memory usage in android?
Android
Memory Management
Does Python have a stack/heap and how is memory managed?
Python
Memory
Memory Management
Explanation of strong and weak storage in iOS5
Memory Management
Ios5
Automatic Ref-Counting
Difference between static memory allocation and dynamic memory allocation
C
Memory
Memory Management
Dynamic Memory-Allocation
Static Memory-Allocation
When to use -retainCount?
Objective C
Memory Management
Retaincount
When you exit a C application, is the malloc-ed memory automatically freed?
C
Memory Management
UIPopovercontroller dealloc reached while popover is still visible
Ios
Memory Management
Uipopovercontroller
Automatic Ref-Counting
What's so wrong about using GC.Collect()?
.Net
Performance
Memory Management
Garbage Collection
iOS 5 Best Practice (Release/retain?)
Iphone
Ios
Ios5
Memory Management
Automatic Ref-Counting
'System.OutOfMemoryException' was thrown when there is still plenty of memory free
C#
Memory Management
Out of-Memory
Initial capacity of vector in C++
C++
Memory Management
Stl
Vector
Is it necessary to use autoreleasepool in a Swift program?
Memory Management
Swift
jQuery or javascript to find memory usage of page
Javascript
Jquery
Memory
Memory Management
Why is stack memory size so limited?
C++
Memory Management
When should I release objects in -(void)viewDidUnload rather than in -dealloc?
Iphone
Objective C
Ios
Cocoa Touch
Memory Management
delete vs delete[]
C++
Memory Management
Delete Operator
malloc for struct and pointer in C
C
Memory Management
How can I give eclipse more memory than 512M?
Eclipse
Memory Management
What is a “memory stomp”?
C++
C
Memory
Memory Management
Is it safe to delete a void pointer?
C++
Memory Management
Casting
Void Pointers
Large Object Heap Fragmentation
C#
.Net
Memory Management
Memory Leaks
Windbg
memory_get_peak_usage() with "real usage"
Php
Memory
Memory Management
How to get memory usage at runtime using C++?
C++
Linux
Memory Management
How does the NSAutoreleasePool autorelease pool work?
Objective C
Memory Management
Nsautoreleasepool
Foundationkit
Is it good practice to free a NULL pointer in C?
C
Pointers
Memory Management
When should I use malloc in C and when don't I?
C
Memory
Memory Management
Operator new initializes memory to zero
C++
Memory Management
How do I create a "spacer" in a C++ class memory structure?
C++
C
Memory Management
Low Level
Bare Metal
Line size of L1 and L2 caches
Caching
Memory Management
Cpu Architecture
Cpu Cache
Why does `free` in C not take the number of bytes to be freed?
C
Memory Management
Malloc
Free
Why do I need std::get_temporary_buffer?
C++
Memory Management
Stl
Buffer
Temporary
Python object deleting itself
Python
Memory Management
Instance
iPhone OS Memory Warnings. What Do The Different Levels Mean?
Memory Management
Ipad
Warnings
Objective C - Assign, Copy, Retain
Ios
Objective C
Macos
Memory Management
Attributes
Difference between Uint8Array and Uint8ClampedArray
Javascript
Arrays
Memory Management
Clamp
memory limit in Node.js (and chrome V8)
Memory Management
node.js
What is the difference between gc() and rm()
R
Memory Management
Garbage Collection
What is the recommended way of allocating memory for a typed memory view?
Python
Memory
Memory Management
Buffer
Cython
Is it ever OK to *not* use free() on allocated memory?
C++
C
Memory Management
Memory Leaks
Heap Memory
How to properly unload/destroy a VIDEO element
Javascript
Jquery
Dom
Memory Management
Html
Conflict between a Stanford tutorial and GCC
C
Gcc
Memory Management
How to find the cause of a malloc "double free" error?
Iphone
Objective C
Memory Management
Malloc
Autorelease
How to get available memory C++/g++?
C++
Memory Management
Cross Platform
In Linux, how to tell how much memory processes are using?
Linux
Unix
Memory Leaks
Memory Management
How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation?
Scala
Apache Spark
Memory Management
Sbt
Scalatra Sbt
Is it possible to debug "Terminated due to memory error"?
Ios
Objective C
Memory Management
Automatic Ref-Counting
What is the difference between a __weak and a __block reference?
Objective C
Memory Management
Objective C-Blocks
Weak References
Ownership
How to force JavaScript to deep copy a string?
Javascript
Google Chrome
Memory Management
Garbage Collection
Perm space vs Heap space
Java
Performance
Memory Management
If a 32-bit integer overflows, can we use a 40-bit structure instead of a 64-bit long one?
C++
C
Memory Management
Integer Overflow
How to free up the memory in JavaScript
Javascript
Arrays
Memory Management
Html5 Canvas
How to monitor Java memory usage?
Java
Garbage Collection
Monitoring
Memory Management
Is "Out Of Memory" A Recoverable Error?
Language Agnostic
Exception
Memory
Memory Management
Error Recovery
Global memory management in C++ in stack or heap?
C++
Memory Management
Stack
Is this explanation about VSS/RSS/PSS/USS accurate?
Android
Memory Management
Is String Literal Pool a collection of references to the String Object, Or a collection of Objects
Java
String
Memory Management
What is the correct Performance Counter to get CPU and Memory Usage of a Process?
C#
Memory Management
Cpu Usage
Performancecounter
How to debug memory leaks when Leaks instrument does not show them?
Ios
Swift
Memory Management
Memory Leaks
Automatic Ref-Counting
Why can arrays not be trimmed?
C#
Arrays
Memory Management
How does the "number of workers" parameter in PyTorch dataloader actually work?
Python
Memory Management
Deep Learning
Pytorch
Ram
How can I get the size of an array from a pointer in C?
C
Memory Management
Pointers
Malloc
Since .NET has a garbage collector why do we need finalizers/destructors/dispose-pattern?
C#
.Net
Memory
Memory Management
Garbage Collection
Determining the available amount of RAM on an iOS device
Xcode
Ios
Memory
Memory Management
Most efficient way to append arrays in C#?
C#
Arrays
Memory Management
Difference between sequential write and random write
Memory Management
Operating System
Disk
Virtual Memory
Solid State-Drive
Why is memory allocation on heap MUCH slower than on stack?
C
Memory Management
Stack
Array placement-new requires unspecified overhead in the buffer?
C++
Memory Management
Standards
Placement New
Free memory allocated in a different function?
C
Pointers
Memory Management
Malloc
Free
A simple "Hello World" needs 10G virtual memory on a 64-bit machine vs 1G at 32-bit?
Java
Memory Management
Jvm
64 Bit
Virtual Memory
What does sys.intern() do and when should it be used?
Python 3.x
Dictionary
Memory
Memory Management
Sys
How to deal with bad_alloc in C++?
C++
Memory Management
Bad Alloc
understanding onTrimMemory( int level )
Android
Memory Management
Android Fragments
Android Activity
How is release handled for @synthesized retain properties?
Objective C
Compiler Construction
Memory Management
Properties
Does GC release back memory to OS?
Java
Memory Management
Garbage Collection
Memory leak detection tools
Iphone
Xcode
Memory Management
Memory Leaks
Read large files in Java
Java
Memory Management
File
Need an array-like structure in PHP with minimal memory usage
Php
Arrays
Memory Management
Out of-Memory
Does free() set errno?
C
Linux
Memory Management
Can the compiler optimize from heap to stack allocation?
C++
Memory Management
Language Lawyer
Compiler Optimization
Dynamically allocating an array of objects
C++
Memory Management
Pointers
Destructor
Copy Constructor
How to properly replace global new & delete operators
C++
Windows
Memory Management
Visual Studio-2003
What does this GCC error "... relocation truncated to fit..." mean?
C
Eclipse
Memory Management
Gcc
Embedded
Is there any benefit of using an Object Initializer?
C#
.Net
Memory Management
Linux free shows high memory usage but top does not
Linux
Memory Management
Process
Redhat
Free Command
Determine the size of a C++ array programmatically?
C++
Arrays
Pointers
Memory Management
How to measure the total memory consumption of the current process programmatically in .NET?
C#
.Net
Performance
Memory
Memory Management
What is the default maximum heap size for Sun's JVM from Java SE 6?
Java
Jvm
Memory Management
Defining methods via prototype vs using this in the constructor - really a performance difference?
Javascript
Performance
Memory Management
Prototype
How can I create a dynamically sized array of structs?
C
Dynamic
Memory Management
Reserve memory for list in Python?
Python
Performance
Arrays
Memory Management
List
Is there garbage collection in PHP?
Php
Memory Management
Garbage Collection
How to get memory usage under Windows in C++
C++
Windows
Memory Management
Why do my array of structs take up so much memory?
C#
.Net
Memory Management
Out of-Memory
.Net Micro-Framework
Comparing STL strings that use different allocators
C++
String
Memory Management
Stl
Releasing memory of huge numpy array in IPython
Python
Memory Management
Numpy
Ipython
A way to determine a process's "real" memory usage, i.e. private dirty RSS?
Linux
Macos
Memory
Memory Management
Freebsd
Where are constant variables stored in C?
C
Variables
Memory Management
Constants
Global
Is there a way to lower Java heap when not in use?
Java
Memory Management
Heap Memory
64-bit JVM limited to 300GB of memory?
Java
Memory Management
Jvm
Cluster Computing
Difference in Used, Committed and Max Heap Memory
Java
Apache Spark
Memory Management
Jvm
Spark Streaming
How to delete multiple pandas (python) dataframes from memory to save RAM?
Python
Memory Management
Pandas
Dataframe
Ram
What's the difference between reserved and committed memory?
Windows
Memory Management
Maximum memory which malloc can allocate
C
Memory Management
Operating System
Malloc
Cpu Architecture
Size of stack and heap memory
C
Memory Management
Heap Memory
Stack Memory
Making std::vector allocate aligned memory
C++
Memory Management
Memory Alignment
Allocator
Find out the size of a .NET object
.Net
Memory Management
Garbage Collection
Profiling
Will new return NULL in any case?
C++
Visual C++
Memory Management
New Operator
Visual C++-6
Does dynamic memory allocation differ in C and C++ in popular implementations?
C++
C
Memory Management
Cloud Functions for Firebase killed due to memory limit exceeded
Firebase
Memory Management
Google Cloud-Functions
What do I need K.clear_session() and del model for (Keras with Tensorflow-gpu)?
Python
Tensorflow
Memory Management
Keras
Object allocate and init in Objective C
Objective C
Cocoa
Cocoa Touch
Memory Management
What is the difference between "new" and "malloc" and "calloc" in C++?
C++
Memory Management
Malloc
Heap Memory
Is it ok to use "classic" malloc()/free() in Objective-C/iPhone apps?
C
Objective C
Memory Management
How to implement didReceiveMemoryWarning?
Iphone
Memory Management
Does variable = null set it for garbage collection
Java
Performance
Memory
Memory Management
Understanding retain cycle in depth
Ios
Objective C
Memory Management
Automatic Ref-Counting
Retain Cycle
Will OpenJDK JVM ever give heap memory back to Linux?
Java
Memory Management
Heap Memory
How variables are allocated memory in Javascript?
Javascript
Memory Management
C API design: Who should allocate?
C
Api
Memory Management
Malloc
Any reason to overload global new and delete?
C++
Memory Management
Overloading
How to include a dynamic array INSIDE a struct in C?
C
Pointers
Arrays
Struct
Memory Management
How to give more memory to IntelliJ Idea 9-11
Memory Management
Intellij Idea
Jvm Arguments
Why / when to use `intptr_t` for type-casting in C?
C
Memory Management
Types
Casting
Intptr
How to dynamically allocate memory space for a string and get that string from user?
C
String
Memory Management
Malloc
Dynamic
GMSPolyline very large memory spike
Optimization
Memory Management
Gps
Google Maps-Sdk-Ios
Why are are std::allocator's construct and destroy functions deprecated in c++17?
C++
Memory Management
Language Lawyer
Allocator
C++17
How to get the Memory Used by a Delphi Program
Delphi
Memory Management
Fastmm
How does a C++ reference look, memory-wise?
C++
Memory Management
Reference
Locating and remedying cause of large heap size
Android
Memory Management
Ddms
Calculating Page Table Size
Memory Management
Paging
Google Cloud Platform: how to monitor memory usage of VM instances
Memory
Google Cloud-Platform
Memory Management
Google Compute-Engine
Google Cloud-Dataproc
Time complexity of memory allocation
Optimization
Memory Management
Malloc
Time Complexity
Is there a reason to call delete in C++ when a program is exiting anyway?
C++
Memory Management
Dynamic
Heap Memory
How do you determine the size of an object in C++?
C++
Class
Memory
Size
Memory Management
Storing Blocks in an Array
Objective C
Memory Management
Objective C-Blocks
How to debug "message sent to deallocated instance" in Xcode 4?
Iphone
Ios
Xcode
Memory Management
Xcode4
iOS6 MKMapView using a ton of memory, to the point of crashing the app, anyone else notice this?
Memory
Memory Management
Mkmapview
Ios6
Ios6 Maps
What does 'corrupted double-linked list' mean
Memory Management
Glibc
Is there a way to mark a chunk of allocated memory readonly?
C++
C
Memory Management
Malloc
Heap Corruption
DeadObjectException on android app
Java
Android
Memory Management
Android Activity
Is it necessary to use [unowned self] in closures of UIView.animateWithDuration(...)?
Ios
Swift
Memory Management
Uiviewanimation
Retain Cycle
Memory Allocation/Deallocation Bottleneck?
Performance
Optimization
Memory Management
Garbage Collection
Malloc
track C++ memory allocations
C++
Windows
Memory Management
Visualization
Initial capacity of collection types, e.g. Dictionary, List
C#
.Net
Memory Management
Collections
Object Initializers
C++ object created with new, destroyed with free(); How bad is this?
C++
Memory Management
what is difference between alloc and allocWithZone:?
Objective C
Memory Management
Alloc
Why does the stack address grow towards decreasing memory addresses?
Memory Management
Stack
Virtual Memory
Callstack
Circular References in Java
Java
Memory
Memory Management
Memory Leaks
Garbage Collection
How is memory allocated for a static variable?
C#
.Net
Memory Management
initializing std::string from char* without copy
C++
String
Memory Management
Stl
What causes memory fragmentation in .NET
C#
.Net
Memory Management
Memory Leaks
Fragmentation
Why does java wait so long to run the garbage collector?
Java
Memory
Memory Management
Playframework
How to check heap usage of a running JVM from the command line?
Java
Memory Management
Garbage Collection
Jetty
Jvisualvm