< prev index next >

src/share/vm/memory/universe.cpp

Print this page




 856 
 857 
 858 // It's the caller's responsibility to ensure glitch-freedom
 859 // (if required).
 860 void Universe::update_heap_info_at_gc() {
 861   _heap_capacity_at_last_gc = heap()->capacity();
 862   _heap_used_at_last_gc     = heap()->used();
 863 }
 864 
 865 
 866 const char* Universe::narrow_oop_mode_to_string(Universe::NARROW_OOP_MODE mode) {
 867   switch (mode) {
 868     case UnscaledNarrowOop:
 869       return "32-bit";
 870     case ZeroBasedNarrowOop:
 871       return "Zero based";
 872     case DisjointBaseNarrowOop:
 873       return "Non-zero disjoint base";
 874     case HeapBasedNarrowOop:
 875       return "Non-zero based";
 876   }
 877 
 878   ShouldNotReachHere();
 879   return "";

 880 }
 881 
 882 
 883 Universe::NARROW_OOP_MODE Universe::narrow_oop_mode() {
 884   if (narrow_oop_base_disjoint()) {
 885     return DisjointBaseNarrowOop;
 886   }
 887 
 888   if (narrow_oop_base() != 0) {
 889     return HeapBasedNarrowOop;
 890   }
 891 
 892   if (narrow_oop_shift() != 0) {
 893     return ZeroBasedNarrowOop;
 894   }
 895 
 896   return UnscaledNarrowOop;
 897 }
 898 
 899 void initialize_known_method(LatestMethodCache* method_cache,




 856 
 857 
 858 // It's the caller's responsibility to ensure glitch-freedom
 859 // (if required).
 860 void Universe::update_heap_info_at_gc() {
 861   _heap_capacity_at_last_gc = heap()->capacity();
 862   _heap_used_at_last_gc     = heap()->used();
 863 }
 864 
 865 
 866 const char* Universe::narrow_oop_mode_to_string(Universe::NARROW_OOP_MODE mode) {
 867   switch (mode) {
 868     case UnscaledNarrowOop:
 869       return "32-bit";
 870     case ZeroBasedNarrowOop:
 871       return "Zero based";
 872     case DisjointBaseNarrowOop:
 873       return "Non-zero disjoint base";
 874     case HeapBasedNarrowOop:
 875       return "Non-zero based";
 876     default:

 877       ShouldNotReachHere();
 878       return "";
 879   }
 880 }
 881 
 882 
 883 Universe::NARROW_OOP_MODE Universe::narrow_oop_mode() {
 884   if (narrow_oop_base_disjoint()) {
 885     return DisjointBaseNarrowOop;
 886   }
 887 
 888   if (narrow_oop_base() != 0) {
 889     return HeapBasedNarrowOop;
 890   }
 891 
 892   if (narrow_oop_shift() != 0) {
 893     return ZeroBasedNarrowOop;
 894   }
 895 
 896   return UnscaledNarrowOop;
 897 }
 898 
 899 void initialize_known_method(LatestMethodCache* method_cache,


< prev index next >