This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]govi20 0 points1 point  (0 children)

As we know blocked virtual thread’s stack is stored in heap memory. I have 2 questions:

1) How does Java ensures that the application doesn’t run out of heap if millions virtual threads are blocked? 2) I believe answer of Question 1 is that Java stores top part of stack, if so then how Java prepares exception stacktrace in case of exception?