2

There's nothing I can found this question .

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

shaoyihe
  • 1,047
  • 1
  • 12
  • 28

1 Answers1

5

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
  • 92,924
  • 10
  • 193
  • 247