Tag: memory-management

7332 What and where are the stack and heap? 2008-09-17T04:18:06.337

903 Can a local variable's memory be accessed outside its scope? 2011-06-22T14:05:48.240

773 Why should C++ programmers minimize use of 'new'? 2011-06-28T00:08:14.313

760 What are the Xms and Xmx parameters when starting JVMs? 2013-02-07T23:28:20.607

753 How do I discover memory usage of my application in Android? 2010-02-19T17:12:35.627

708 Why is my program slow when looping over exactly 8192 elements? 2012-09-04T13:51:31.017

602 Which Python memory profiler is recommended? 2008-09-21T04:43:04.737

465 How do I determine the size of an object in Python? 2009-01-16T05:07:12.617

456 Tricks to manage the available memory in an R session 2009-08-31T15:26:13.070

426 What is private bytes, virtual bytes, working set? 2009-12-31T06:16:34.240

400 In what cases do I use malloc vs new? 2008-10-08T19:47:55.090

379 How to allocate aligned memory only using the standard library? 2008-10-22T23:23:41.717

357 What uses are there for "placement new"? 2008-10-21T16:34:52.510

338 Deleting Objects in JavaScript 2009-04-12T23:18:31.907

314 Peak memory usage of a linux/unix process 2009-04-21T20:55:25.993

263 Does using "new" on a struct allocate it on the heap or stack? 2008-10-15T04:09:30.443

261 Is it safe to delete a NULL pointer? 2010-11-16T02:33:27.157

260 What is the difference between new/delete and malloc/free? 2008-10-27T15:05:30.310

247 How do malloc() and free() work? 2009-07-13T12:22:18.890

247 How can I explicitly free memory in Python? 2009-08-22T19:10:35.333

238 Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php 2009-01-06T08:18:28.810

210 C++ new int[0] -- will it allocate memory? 2009-07-06T13:42:29.457

208 How to Free Inode Usage? 2009-03-17T05:27:35.643

208 What is the difference between a weak reference and an unowned reference? 2014-06-03T09:27:39.347

201 Is delete this allowed? 2010-06-30T15:45:54.683

196 @property retain, assign, copy, nonatomic in Objective-C 2010-02-12T23:51:26.393

184 Why is @autoreleasepool still needed with ARC? 2012-01-31T21:03:08.707

175 Setting Objects to Null/Nothing after use in .NET 2008-08-05T20:14:10.560

175 What's the difference between .so, .la and .a library files? 2012-09-02T15:38:10.977

170 Total memory used by Python process? 2009-06-02T09:50:40.083

164 Retain cycle on `self` with blocks 2010-12-04T07:55:40.010

152 Compelling examples of custom C++ allocators? 2009-05-05T19:36:48.660

150 What does the brk() system call do? 2011-08-08T20:57:32.697

148 Does delete call the destructor? 2009-03-24T14:30:32.753

144 Why would you use an ivar? 2012-01-31T20:51:07.580

140 How to initialise memory with new operator in C++? 2010-02-05T00:06:19.800

140 What does "Memory allocated at compile time" really mean? 2014-01-25T12:24:05.513

138 Why do two identical lists have a different memory footprint? 2018-07-25T19:22:18.463

137 What strategies and tools are useful for finding memory leaks in .NET? 2008-09-25T15:41:32.280

136 Retrieve CPU usage and memory usage of a single process on Linux? 2009-08-03T10:13:50.830

131 Reducing Django Memory Usage. Low hanging fruit? 2009-01-28T10:52:19.617

128 Calculate size of Object in Java 2012-02-20T21:36:32.260

128 What does Visual Studio do with a deleted pointer and why? 2015-10-27T17:19:08.350

127 Python memory leaks 2009-09-16T20:56:04.007

125 ios app maximum memory budget 2011-05-04T17:13:10.560

122 What is the maximum amount of RAM an app can use? 2013-09-07T16:40:07.897

121 General guidelines to avoid memory leaks in C++ 2008-09-16T20:41:14.670

121 Proper stack and heap usage in C++? 2009-03-01T05:32:24.393

117 How to get memory available or used in C# 2009-04-15T06:57:00.400

117 Memory footprint of Haskell data types 2010-07-15T10:39:03.397

116 Memory address of variables in Java 2009-12-25T13:10:42.403

116 Implementing IDisposable correctly 2013-08-20T13:53:19.807

115 Why doesn't delete set the pointer to NULL? 2009-04-01T07:48:50.067

115 What Every Programmer Should Know About Memory? 2011-11-14T18:30:09.493

115 Where in memory are my variables stored in C? 2013-01-29T17:32:22.070

112 R memory management / cannot allocate vector of size n Mb 2011-03-02T18:13:01.340

112 In which situations do we need to write the __autoreleasing ownership qualifier under ARC? 2012-01-14T11:52:25.357

111 Explanation of strong and weak storage in iOS5 2012-02-13T14:53:35.140

110 UIPopovercontroller dealloc reached while popover is still visible 2012-01-17T13:04:17.977

108 How to set the maximum memory usage for JVM? 2009-09-29T17:24:55.137

108 iOS 5 Best Practice (Release/retain?) 2011-06-10T15:19:16.380

106 When and why will an OS initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete? 2008-12-16T00:41:59.277

106 Releasing memory in Python 2013-03-16T21:44:59.940

105 Smart Pointers: Or who owns you baby? 2008-09-18T16:35:17.117

105 Attempted to read or write protected memory. This is often an indication that other memory is corrupt 2010-11-02T02:47:01.597

103 When should I release objects in -(void)viewDidUnload rather than in -dealloc? 2009-07-21T12:08:50.853

103 Increasing (or decreasing) the memory available to R processes 2009-09-08T17:28:42.853

103 When to use -retainCount? 2011-01-08T21:07:14.560

102 static allocation in java - heap, stack and permanent generation 2010-10-03T12:00:36.457

100 C++, Free-Store vs Heap 2009-08-29T08:05:42.133

99 Is volatile expensive? 2011-01-08T12:34:26.940

96 Android Studio - How to increase Allocated Heap Size 2013-09-10T16:01:18.540

94 What's so wrong about using GC.Collect()? 2008-09-23T01:30:12.357

93 How does the NSAutoreleasePool autorelease pool work? 2008-09-15T18:27:33.847

93 Large Object Heap Fragmentation 2009-03-26T18:10:20.183

91 How do I create a "spacer" in a C++ class memory structure? 2018-11-01T21:53:42.397

90 How to get current memory usage in android? 2010-07-03T07:28:55.597

90 What is a “memory stomp”? 2012-12-02T12:37:36.620

88 delete vs delete[] operators in C++ 2010-03-11T14:32:48.447

87 How can I give eclipse more memory than 512M? 2010-04-09T19:13:43.610

86 When should I use malloc in C and when don't I? 2009-12-26T16:51:56.843

85 jQuery or javascript to find memory usage of page 2010-03-27T17:31:10.363

85 iPhone OS Memory Warnings. What Do The Different Levels Mean? 2010-05-26T17:16:25.583

84 Is it safe to delete a void pointer? 2009-06-02T20:47:47.100

83 Is it ever OK to *not* use free() on allocated memory? 2014-03-18T13:38:36.923

82 Conflict between a Stanford tutorial and GCC 2013-10-24T07:03:53.083

81 Why do I need std::get_temporary_buffer? 2010-07-16T11:25:38.520

81 Why does `free` in C not take the number of bytes to be freed? 2014-06-13T11:10:25.513

79 When you exit a C application, is the malloc-ed memory automatically freed? 2010-02-06T15:37:21.790

79 How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation? 2011-11-30T18:41:01.220

78 How to find the cause of a malloc "double free" error? 2009-06-09T16:49:50.400

78 'System.OutOfMemoryException' was thrown when there is still plenty of memory free 2009-07-20T13:50:53.717

78 What are the differences between virtual memory and physical memory? 2013-01-15T21:24:44.640

78 memory_get_peak_usage() with "real usage" 2013-04-01T14:32:43.860

77 Objective C - Assign, Copy, Retain 2010-12-22T15:51:17.657

75 Is "Out Of Memory" A Recoverable Error? 2008-12-02T11:55:02.513

75 If a 32-bit integer overflows, can we use a 40-bit structure instead of a 64-bit long one? 2014-12-30T12:22:30.983

74 Perm space vs Heap space 2011-01-31T07:50:30.300

73 How to get memory usage at runtime using C++? 2009-03-21T15:11:41.387