equal
deleted
inserted
replaced
24 |
24 |
25 #ifndef SHARE_VM_UTILITIES_STACK_HPP |
25 #ifndef SHARE_VM_UTILITIES_STACK_HPP |
26 #define SHARE_VM_UTILITIES_STACK_HPP |
26 #define SHARE_VM_UTILITIES_STACK_HPP |
27 |
27 |
28 #include "memory/allocation.hpp" |
28 #include "memory/allocation.hpp" |
29 #include "memory/allocation.inline.hpp" |
|
30 |
29 |
31 // Class Stack (below) grows and shrinks by linking together "segments" which |
30 // Class Stack (below) grows and shrinks by linking together "segments" which |
32 // are allocated on demand. Segments are arrays of the element type (E) plus an |
31 // are allocated on demand. Segments are arrays of the element type (E) plus an |
33 // extra pointer-sized field to store the segment link. Recently emptied |
32 // extra pointer-sized field to store the segment link. Recently emptied |
34 // segments are kept in a cache and reused. |
33 // segments are kept in a cache and reused. |