I understand how does JVM creates java heap out of available native heap provided by OS.
For any native process like JVM(java.exe), OS allocates address space which is divided into multiple regions like heap, stack, data etc.'
In somewhat same way JVM allocates some address space to the running java program(byecode) which include java heap, stack etc.
I understood that java heap is portion of native heap(provided by OS to JVM(java.exe))
But I am not able to understand where is this "stack" portion coming from.
Is it the part of native heap? Is it part of native stack, just like java heap is part of native heap?
Just like Java Heap vs Native Heap, aren't we having Java Stack vs native Stack?
please help me. I am really struggling to understand stack memory in java.