< prev index next >

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

Print this page
rev 53600 : imported patch autouncommit-metachunks

@@ -103,10 +103,12 @@
   int _use_count;
 
   MetaWord* initial_top() const { return (MetaWord*)this + overhead(); }
   MetaWord* top() const         { return _top; }
 
+  bool calc_uncommit_range(address* start, size_t* len) const;
+
  public:
   // Metachunks are allocated out of a MetadataVirtualSpace and
   // and use some of its space to describe itself (plus alignment
   // considerations).  Metadata is allocated in the rest of the chunk.
   // This size is the overhead of maintaining the Metachunk within

@@ -156,10 +158,13 @@
   bool is_class() const                 { return _is_class; }
 
   DEBUG_ONLY(void mangle(juint word_value);)
   DEBUG_ONLY(void verify() const;)
 
+  bool commit();
+  bool uncommit();
+
 };
 
 
 // Helper function that does a bunch of checks for a chunk.
 DEBUG_ONLY(void do_verify_chunk(Metachunk* chunk);)
< prev index next >