1

There's nothing I can found this question .

Does the JVM code cache area exist in heap or metaspace in jdk 8?

shaoyihe
  • 1,007
  • 1
  • 11
  • 28

1 Answers1

3

Neither in Heap nor in Metaspace. In HotSpot JVM Code Cache is a separate off-heap area. Its size is controlled by -XX:ReservedCodeCacheSize option.

On the "Memory" tab of Java Mission Control you'll find the Code Cache among other JVM memory pools:

JVM memory pools

More about JVM memory areas

apangin
  • 86,266
  • 9
  • 178
  • 218