diff src/share/vm/c1x/c1x_CodeInstaller.cpp @ 2495:c737ee310b39

Small adjustment to assertion and constants size calculation.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 22 Apr 2011 21:52:33 +0200
parents e88293edf07c
children 3e3e8bd12730
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_CodeInstaller.cpp	Fri Apr 22 21:13:09 2011 +0200
+++ b/src/share/vm/c1x/c1x_CodeInstaller.cpp	Fri Apr 22 21:52:33 2011 +0200
@@ -223,7 +223,7 @@
 
 
   // (very) conservative estimate: each site needs a constant section entry
-  _constants_size = _sites->length() * BytesPerLong;
+  _constants_size = _sites->length() * (BytesPerLong*2);
   _total_size = align_size_up(_code_size, HeapWordSize) + _constants_size;
 
   _next_call_type = MARK_INVOKE_INVALID;