Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
2494:e88293edf07c | 2495:c737ee310b39 |
---|---|
221 _frame_size = CiTargetMethod::frameSize(_citarget_method); | 221 _frame_size = CiTargetMethod::frameSize(_citarget_method); |
222 _custom_stack_area_offset = CiTargetMethod::customStackAreaOffset(_citarget_method); | 222 _custom_stack_area_offset = CiTargetMethod::customStackAreaOffset(_citarget_method); |
223 | 223 |
224 | 224 |
225 // (very) conservative estimate: each site needs a constant section entry | 225 // (very) conservative estimate: each site needs a constant section entry |
226 _constants_size = _sites->length() * BytesPerLong; | 226 _constants_size = _sites->length() * (BytesPerLong*2); |
227 _total_size = align_size_up(_code_size, HeapWordSize) + _constants_size; | 227 _total_size = align_size_up(_code_size, HeapWordSize) + _constants_size; |
228 | 228 |
229 _next_call_type = MARK_INVOKE_INVALID; | 229 _next_call_type = MARK_INVOKE_INVALID; |
230 } | 230 } |
231 | 231 |