Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
123 views

Why is there a heap-after-use error here? I am trying to solve a Leetcode problem in C++. I don't see any dangling pointers or refs to freed memory

I am trying to solve LeetCode 2487: Remove Nodes From Linked List, and I’ve implemented a solution in C++ that first reverses the list, then removes nodes that have a greater value node to their left (...
notSukuna's user avatar
0 votes
0 answers
70 views

Why does an in-scope object show as "dead" in Visual Studio when doing a heap snapshot?

I have this sample program: Program.cs: internal class Program { private static void Main(string[] args) { var testObject = new ZZTest(); Console.ReadLine(); Console....
qscott86's user avatar
  • 323
1 vote
0 answers
79 views

How does Python represent slices in various cases?

Consider l = [1, 2, 3, 4, 5] print(l is l[:]) t = (1, 2, 3, 4, 5) print(t is t[:]) print(t[1:] is t[1:]) print('aa'[1:] is 'aa'[1:]) print('aaa'[1:] is 'aaa'[1:]) The result is, somewhat surprisingly,...
ByteEater's user avatar
  • 1,171
0 votes
0 answers
35 views

Java stream row not getting cleared from heap space

OutOfMemoryError while streaming 20M+ rows in Spring Boot with Hibernate Issue I’m streaming 20M+ rows from my Content table using a Stream<Object[]> in Spring Boot with Hibernate. However, I ...
shubh gupta's user avatar
-5 votes
1 answer
64 views

How to release the large object memory which is occupied by xdocument immediately? [duplicate]

XDocument xDoc1 = XDocument.Load(XMLFilepath1, LoadOptions.PreserveWhitespace); Please suggect any options other GC.Collect() for clearing large objects immediately. We tried below options- GC....
sree's user avatar
  • 1
0 votes
1 answer
42 views

windbg heap memory mismatch vs total memory of individual addresses

I'm m debugging a .Net process for a possible memory leak. The command !address -summary shows: 0:000> !address -summary --- Usage Summary ---------------- RgnCount ----------- Total Size -------- ...
Phiber's user avatar
  • 1,103
1 vote
3 answers
132 views

Can we use memory address difference to see where an object is initialized? [closed]

I've been reading on user space and kernel space and how heap and stack grow. I'm wondering, if heap and stack memories have constant starts in memory layout, can we just use memory address difference ...
Danilo's user avatar
  • 1,042
-1 votes
1 answer
24 views

Hypersql (HSQL) startup time and heap memory uses

I am using HSQL with java, HSQL database file size is 3 GB then it need 10 GB heap memory and approx. 5-7 minute database boot time while creating datasource. Need suggestions to bring down heap ...
ashu's user avatar
  • 1
0 votes
0 answers
102 views

Heap Memory Stair-Case rising in SwiftUI project

A simple keyboard extension app showing continuous heap memory allocation each time open the keyboard on screen. For easier understanding see the image below... Here is the KeyboardViewController: ...
Asim Roy's user avatar
  • 10.2k
0 votes
1 answer
127 views

How is a heap overflow attack implemented?

I am learning about heap overflow attacks, but I am encountering a problem. Based on the knowledge I found online and my own guesses, I believe that a heap overflow attack involves overwriting ...
ho tian's user avatar
  • 31
-1 votes
1 answer
46 views

How to reduce heap space utilization when working with a list PDF documents?

I have a microservice that generates multiple PDF Documents and saves to database. For generating each document, from the main service class, I call multiple document specific service class methods by ...
Rey Rajesh's user avatar
2 votes
1 answer
132 views

Is arr in stack or heap?

I want to understand if arr here is in stack or heap. Since obj is dynamically allocated is the arr in heap? What if i do not have obj2, if i just allocate obj dynamically in main? #include <...
Rich Gg's user avatar
  • 61
1 vote
1 answer
144 views

Strange garbage collection behaviour leads to server performance degradation

Background to the Application: We have a Java WebApp on a Tomcat Server for multiple users. We have 30+ customers servers running. Problem: On one particular customer we run into a strange phenomenon ...
berni's user avatar
  • 11
3 votes
1 answer
62 views

Observing the default process heap getting created (breakpoint on heap creation)

I want to observe when the default process heap gets created, i.e. have a breakpoint and get the callstack of the creation. This has no practical background. I just want to understand the Windows ...
Thomas Weller's user avatar
1 vote
0 answers
17 views

Not able to merge free blocks together in my simple, custom, memory allocator

I am trying to implement a simple memory allocator. Essentially trying to copy the function malloc() and free(void *ptr) in C. I initialize a region of memory using sbrk(). In my custom malloc ...
Kamrul Hassan's user avatar

15 30 50 per page
1
2 3 4 5
446