< prev index next >

src/share/vm/memory/universe.hpp

Print this page




 358   };
 359   static NARROW_OOP_MODE narrow_oop_mode();
 360   static const char* narrow_oop_mode_to_string(NARROW_OOP_MODE mode);
 361   static char*    preferred_heap_base(size_t heap_size, size_t alignment, NARROW_OOP_MODE mode);
 362   static char*    preferred_metaspace_base(size_t heap_size, NARROW_OOP_MODE mode);
 363   static address  narrow_oop_base()                       { return  _narrow_oop._base; }
 364   static bool  is_narrow_oop_base(void* addr)             { return (narrow_oop_base() == (address)addr); }
 365   static int      narrow_oop_shift()                      { return  _narrow_oop._shift; }
 366   static bool     narrow_oop_use_implicit_null_checks()   { return  _narrow_oop._use_implicit_null_checks; }
 367 
 368   // For UseCompressedClassPointers
 369   static address  narrow_klass_base()                     { return  _narrow_klass._base; }
 370   static bool  is_narrow_klass_base(void* addr)           { return (narrow_klass_base() == (address)addr); }
 371   static int      narrow_klass_shift()                    { return  _narrow_klass._shift; }
 372   static bool     narrow_klass_use_implicit_null_checks() { return  _narrow_klass._use_implicit_null_checks; }
 373 
 374   static address* narrow_ptrs_base_addr()                 { return &_narrow_ptrs_base; }
 375   static void     set_narrow_ptrs_base(address a)         { _narrow_ptrs_base = a; }
 376   static address  narrow_ptrs_base()                      { return _narrow_ptrs_base; }
 377 
 378   static void     print_compressed_oops_mode();
 379 
 380   // this is set in vm_version on sparc (and then reset in universe afaict)
 381   static void     set_narrow_oop_shift(int shift)         {
 382     _narrow_oop._shift   = shift;
 383   }
 384 
 385   static void     set_narrow_klass_shift(int shift)       {
 386     assert(shift == 0 || shift == LogKlassAlignmentInBytes, "invalid shift for klass ptrs");
 387     _narrow_klass._shift   = shift;
 388   }
 389 
 390   // Reserve Java heap and determine CompressedOops mode
 391   static ReservedSpace reserve_heap(size_t heap_size, size_t alignment);
 392 
 393   // Historic gc information
 394   static size_t get_heap_capacity_at_last_gc()         { return _heap_capacity_at_last_gc; }
 395   static size_t get_heap_free_at_last_gc()             { return _heap_capacity_at_last_gc - _heap_used_at_last_gc; }
 396   static size_t get_heap_used_at_last_gc()             { return _heap_used_at_last_gc; }
 397   static void update_heap_info_at_gc();
 398 




 358   };
 359   static NARROW_OOP_MODE narrow_oop_mode();
 360   static const char* narrow_oop_mode_to_string(NARROW_OOP_MODE mode);
 361   static char*    preferred_heap_base(size_t heap_size, size_t alignment, NARROW_OOP_MODE mode);
 362   static char*    preferred_metaspace_base(size_t heap_size, NARROW_OOP_MODE mode);
 363   static address  narrow_oop_base()                       { return  _narrow_oop._base; }
 364   static bool  is_narrow_oop_base(void* addr)             { return (narrow_oop_base() == (address)addr); }
 365   static int      narrow_oop_shift()                      { return  _narrow_oop._shift; }
 366   static bool     narrow_oop_use_implicit_null_checks()   { return  _narrow_oop._use_implicit_null_checks; }
 367 
 368   // For UseCompressedClassPointers
 369   static address  narrow_klass_base()                     { return  _narrow_klass._base; }
 370   static bool  is_narrow_klass_base(void* addr)           { return (narrow_klass_base() == (address)addr); }
 371   static int      narrow_klass_shift()                    { return  _narrow_klass._shift; }
 372   static bool     narrow_klass_use_implicit_null_checks() { return  _narrow_klass._use_implicit_null_checks; }
 373 
 374   static address* narrow_ptrs_base_addr()                 { return &_narrow_ptrs_base; }
 375   static void     set_narrow_ptrs_base(address a)         { _narrow_ptrs_base = a; }
 376   static address  narrow_ptrs_base()                      { return _narrow_ptrs_base; }
 377 
 378   static void     print_compressed_oops_mode(outputStream* st);
 379 
 380   // this is set in vm_version on sparc (and then reset in universe afaict)
 381   static void     set_narrow_oop_shift(int shift)         {
 382     _narrow_oop._shift   = shift;
 383   }
 384 
 385   static void     set_narrow_klass_shift(int shift)       {
 386     assert(shift == 0 || shift == LogKlassAlignmentInBytes, "invalid shift for klass ptrs");
 387     _narrow_klass._shift   = shift;
 388   }
 389 
 390   // Reserve Java heap and determine CompressedOops mode
 391   static ReservedSpace reserve_heap(size_t heap_size, size_t alignment);
 392 
 393   // Historic gc information
 394   static size_t get_heap_capacity_at_last_gc()         { return _heap_capacity_at_last_gc; }
 395   static size_t get_heap_free_at_last_gc()             { return _heap_capacity_at_last_gc - _heap_used_at_last_gc; }
 396   static size_t get_heap_used_at_last_gc()             { return _heap_used_at_last_gc; }
 397   static void update_heap_info_at_gc();
 398 


< prev index next >