Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:38:44+00:00 2026-06-05T16:38:44+00:00

I have noted the following from a website: The JVM HotSpot memory is split

  • 0

I have noted the following from a website: The JVM HotSpot memory is split between 3 memory spaces:

  • The Java Heap
  • The PermGen (permanent generation) space
  • The Native Heap (C-Heap)

Where is the stack allocated in hotSpot JVM? In native heap?

update:
another reference info:
For a 64-bit VM, the C-Heap capacity = Physical server total RAM & virtual memory – Java Heap – PermGen

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:38:46+00:00Added an answer on June 5, 2026 at 4:38 pm

    The answer is:

    1. It is implementation dependent.

    2. In the implementation I looked at, the thread stack allocation was handled by the standard C native thread library, and it looked like the library was going to the OS to allocate a memory segment for the stack. So “none of the above”.

    3. You can confirm this by delving into the OpenJDK source code relevant to your platform.

    UPDATE

    From an old question, here is the snippet of code from pthread_create that requests the allocation of the thread stack. This method used by the JVM thread implementation to create the native thread.

     mmap(0, attr.__stacksize, 
         PROT_READ|PROT_WRITE|PROT_EXEC, 
         MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
    

    As you can see, it just uses the mmap system call to request a memory segment from the operating system. As I said in a comment, this is NOT the regular Java heap, NOT the Permgen heap, and NOT the C native heap. It is a segment of memory specifically requested from the operating system.

    For reference, here’s a link to the mmap syscall manual entry.


    update: another reference info: For a 64-bit VM, the C-Heap capacity = Physical server total RAM & virtual memory – Java Heap – PermGen

    IMO, that is an oversimplification. (And please provide a link to where you found this information … so that we can read it in its original form.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following data from 2 tables Notes (left) and scans (right) :
I have written a program which strips the tags from a HTML website which
I currently have the following code for EVERY page on my website. Please could
For a website implemented in Django/Python we have the following requirement: On a view
I have, let's say, www.website.org/folder/ which inside has the following .htaccess RewriteEngine On RewriteRule
I have downloaded LEDA free edition from this website http://www.algorithmic-solutions.com/leda/ledak/index.htm First quetion: I want
I have the following query, courtesy of SO: SELECT field_website_value FROM field_data_field_website WHERE field_website_value
We have a job server the processes jobs submitted from websites. The website's assemblies
I am creating a journal application for personal notes and have the following in
I have the following HTML code (note no closing tags on <\option> ) generated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.