39 |
39 |
40 // -- Implementation -- |
40 // -- Implementation -- |
41 // The CodeCache consists of one or more CodeHeaps, each of which contains |
41 // The CodeCache consists of one or more CodeHeaps, each of which contains |
42 // CodeBlobs of a specific CodeBlobType. Currently heaps for the following |
42 // CodeBlobs of a specific CodeBlobType. Currently heaps for the following |
43 // types are available: |
43 // types are available: |
44 // - Non-methods: Non-methods like Buffers, Adapters and Runtime Stubs |
44 // - Non-nmethods: Non-nmethods like Buffers, Adapters and Runtime Stubs |
45 // - Profiled nmethods: nmethods that are profiled, i.e., those |
45 // - Profiled nmethods: nmethods that are profiled, i.e., those |
46 // executed at level 2 or 3 |
46 // executed at level 2 or 3 |
47 // - Non-Profiled nmethods: nmethods that are not profiled, i.e., those |
47 // - Non-Profiled nmethods: nmethods that are not profiled, i.e., those |
48 // executed at level 1 or 4 and native methods |
48 // executed at level 1 or 4 and native methods |
49 // - All: Used for code of all types if code cache segmentation is disabled. |
49 // - All: Used for code of all types if code cache segmentation is disabled. |
50 // |
50 // |
51 // In the rare case of the non-method code heap getting full, non-method code |
51 // In the rare case of the non-nmethod code heap getting full, non-nmethod code |
52 // will be stored in the non-profiled code heap as a fallback solution. |
52 // will be stored in the non-profiled code heap as a fallback solution. |
53 // |
53 // |
54 // Depending on the availability of compilers and TieredCompilation there |
54 // Depending on the availability of compilers and TieredCompilation there |
55 // may be fewer heaps. The size of the code heaps depends on the values of |
55 // may be fewer heaps. The size of the code heaps depends on the values of |
56 // ReservedCodeCacheSize, NonProfiledCodeHeapSize and ProfiledCodeHeapSize |
56 // ReservedCodeCacheSize, NonProfiledCodeHeapSize and ProfiledCodeHeapSize |