< prev index next >

src/hotspot/share/cds/archiveUtils.hpp

Print this page
*** 140,14 ***
    void commit_to(char* newtop);
  
  public:
    DumpRegion(const char* name, uintx max_delta = 0)
      : _name(name), _base(NULL), _top(NULL), _end(NULL),
!       _max_delta(max_delta), _is_packed(false) {}
  
    char* expand_top_to(char* newtop);
    char* allocate(size_t num_bytes);
  
    void append_intptr_t(intptr_t n, bool need_to_mark = false);
  
    char* base()      const { return _base;        }
    char* top()       const { return _top;         }
--- 140,18 ---
    void commit_to(char* newtop);
  
  public:
    DumpRegion(const char* name, uintx max_delta = 0)
      : _name(name), _base(NULL), _top(NULL), _end(NULL),
!       _max_delta(max_delta), _is_packed(false),
+       _rs(NULL), _vs(NULL) {}
  
    char* expand_top_to(char* newtop);
+   // Allocate with default alignment (SharedSpaceObjectAlignment)
    char* allocate(size_t num_bytes);
+   // Allocate with an arbitrary alignment.
+   char* allocate(size_t num_bytes, size_t alignment);
  
    void append_intptr_t(intptr_t n, bool need_to_mark = false);
  
    char* base()      const { return _base;        }
    char* top()       const { return _top;         }
< prev index next >