equal
deleted
inserted
replaced
76 // on behalf of a user or when we are destroyed. |
76 // on behalf of a user or when we are destroyed. |
77 SizeAtomicCounter* const _total_used_words_counter; |
77 SizeAtomicCounter* const _total_used_words_counter; |
78 |
78 |
79 const char* const _name; |
79 const char* const _name; |
80 |
80 |
|
81 // Whether or not this is a "micro loader" which is not expected to load more than one class. |
|
82 const bool _is_micro_loader; |
|
83 |
81 Mutex* lock() const { return _lock; } |
84 Mutex* lock() const { return _lock; } |
82 ChunkManager* chunk_manager() const { return _chunk_manager; } |
85 ChunkManager* chunk_manager() const { return _chunk_manager; } |
83 const ChunkAllocSequence* chunk_alloc_sequence() const { return _chunk_alloc_sequence; } |
86 const ChunkAllocSequence* chunk_alloc_sequence() const { return _chunk_alloc_sequence; } |
84 |
87 |
85 BlockFreelist* block_freelist() const { return _block_freelist; } |
88 BlockFreelist* block_freelist() const { return _block_freelist; } |
113 |
116 |
114 SpaceManager(ChunkManager* chunk_manager, |
117 SpaceManager(ChunkManager* chunk_manager, |
115 const ChunkAllocSequence* alloc_sequence, |
118 const ChunkAllocSequence* alloc_sequence, |
116 Mutex* lock, |
119 Mutex* lock, |
117 SizeAtomicCounter* total_used_words_counter, |
120 SizeAtomicCounter* total_used_words_counter, |
118 const char* name); |
121 const char* name, |
|
122 bool is_micro_loader); |
119 |
123 |
120 ~SpaceManager(); |
124 ~SpaceManager(); |
121 |
125 |
122 // Allocate memory from Metaspace. |
126 // Allocate memory from Metaspace. |
123 // 1) Attempt to allocate from the dictionary of deallocated blocks. |
127 // 1) Attempt to allocate from the dictionary of deallocated blocks. |