changeset 8155:3c29f7da5c66

More C++ fixes. Revert alignment change of _number_of_committed_segments.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Mar 2013 21:33:03 +0100
parents a2a67458a7b6
children 5977a55503e9
files src/share/vm/code/compiledIC.cpp src/share/vm/code/nmethod.cpp src/share/vm/memory/heap.cpp
diffstat 3 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/compiledIC.cpp	Thu Mar 07 21:24:17 2013 +0100
+++ b/src/share/vm/code/compiledIC.cpp	Thu Mar 07 21:33:03 2013 +0100
@@ -661,11 +661,7 @@
         case relocInfo::poll_type:
         case relocInfo::poll_return_type: // A safepoint can't overlap a call.
         default:
-#ifdef GRAAL
-          return NULL;
-#else
           ShouldNotReachHere();
-#endif
       }
     }
   }
--- a/src/share/vm/code/nmethod.cpp	Thu Mar 07 21:24:17 2013 +0100
+++ b/src/share/vm/code/nmethod.cpp	Thu Mar 07 21:33:03 2013 +0100
@@ -521,7 +521,7 @@
               code_buffer, frame_size,
               basic_lock_owner_sp_offset, basic_lock_sp_offset,
               oop_maps);
-    if (nm != NULL)  nmethod_stats.note_native_nmethod(nm);
+    NOT_PRODUCT(if (nm != NULL)  nmethod_stats.note_native_nmethod(nm));
     if (PrintAssembly && nm != NULL)
       Disassembler::decode(nm);
   }
--- a/src/share/vm/memory/heap.cpp	Thu Mar 07 21:24:17 2013 +0100
+++ b/src/share/vm/memory/heap.cpp	Thu Mar 07 21:33:03 2013 +0100
@@ -127,7 +127,7 @@
   assert(_number_of_reserved_segments >= _number_of_committed_segments, "just checking");
 
   // reserve space for _segmap
-  if (!_segmap.initialize(align_to_allocation_size(_number_of_reserved_segments), align_to_allocation_size(_number_of_committed_segments))) {
+  if (!_segmap.initialize(align_to_page_size(_number_of_reserved_segments), align_to_page_size(_number_of_committed_segments))) {
     return false;
   }