equal
deleted
inserted
replaced
67 ~ClassLoaderMetaspace(); |
67 ~ClassLoaderMetaspace(); |
68 |
68 |
69 MetaspaceType space_type() const { return _space_type; } |
69 MetaspaceType space_type() const { return _space_type; } |
70 |
70 |
71 // Allocate word_size words from Metaspace. |
71 // Allocate word_size words from Metaspace. |
72 MetaWord* allocate(size_t word_size, MetadataType mdType); |
72 MetaWord* allocate(size_t word_size, Metaspace::MetadataType mdType); |
73 |
73 |
74 // Attempt to expand the GC threshold to be good for at least another word_size words |
74 // Attempt to expand the GC threshold to be good for at least another word_size words |
75 // and allocate. Returns NULL if failure. Used during Metaspace GC. |
75 // and allocate. Returns NULL if failure. Used during Metaspace GC. |
76 MetaWord* expand_and_allocate(size_t word_size, MetadataType mdType); |
76 MetaWord* expand_and_allocate(size_t word_size, Metaspace::MetadataType mdType); |
77 |
77 |
78 // Prematurely returns a metaspace allocation to the _block_freelists |
78 // Prematurely returns a metaspace allocation to the _block_freelists |
79 // because it is not needed anymore. |
79 // because it is not needed anymore. |
80 void deallocate(MetaWord* ptr, size_t word_size, bool is_class); |
80 void deallocate(MetaWord* ptr, size_t word_size, bool is_class); |
81 |
81 |