< prev index next >

src/hotspot/share/memory/metaspace/metaspaceArena.hpp

Print this page
*** 92,10 ***
--- 92,13 ---
    const ArenaGrowthPolicy* const _growth_policy;
  
    // List of chunks. Head of the list is the current chunk.
    MetachunkList _chunks;
  
+   // Alignment alignment, in words.
+   const int _alignment_words;
+ 
    // Structure to take care of leftover/deallocated space in used chunks.
    // Owned by the Arena. Gets allocated on demand only.
    FreeBlocks* _fbl;
  
    Metachunk* current_chunk()              { return _chunks.first(); }

*** 162,11 ***
    // Allocate from the arena proper, once dictionary allocations and fencing are sorted out.
    MetaWord* allocate_inner(size_t word_size);
  
  public:
  
!   MetaspaceArena(ChunkManager* chunk_manager, const ArenaGrowthPolicy* growth_policy,
                   Mutex* lock, SizeAtomicCounter* total_used_words_counter,
                   const char* name);
  
    ~MetaspaceArena();
  
--- 165,11 ---
    // Allocate from the arena proper, once dictionary allocations and fencing are sorted out.
    MetaWord* allocate_inner(size_t word_size);
  
  public:
  
!   MetaspaceArena(ChunkManager* chunk_manager, const ArenaGrowthPolicy* growth_policy, int alignment_words,
                   Mutex* lock, SizeAtomicCounter* total_used_words_counter,
                   const char* name);
  
    ~MetaspaceArena();
  
< prev index next >