# HG changeset patch # User Roland Schatz # Date 1415106395 -3600 # Node ID 4221c8332c3461d0ff5a7c11a80d09b7736442b1 # Parent 6924bb0badc9d94fe6b73ace4e398ed4e09e8a50 Remove unnecessary padding in constants section. diff -r 6924bb0badc9 -r 4221c8332c34 src/share/vm/graal/graalCodeInstaller.cpp --- a/src/share/vm/graal/graalCodeInstaller.cpp Tue Nov 04 13:08:52 2014 +0100 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Tue Nov 04 14:06:35 2014 +0100 @@ -473,7 +473,7 @@ if (cb != NULL) { // Make sure the pre-calculated constants section size was correct. - guarantee((cb->code_begin() - cb->content_begin()) == _constants_size, err_msg("%d != %d", (int)(cb->code_begin() - cb->content_begin()), _constants_size)); + guarantee((cb->code_begin() - cb->content_begin()) >= _constants_size, err_msg("%d < %d", (int)(cb->code_begin() - cb->content_begin()), _constants_size)); } return result; } @@ -502,9 +502,6 @@ _data_section_handle = JNIHandles::make_local(HotSpotCompiledCode::dataSection(compiled_code)); guarantee(HotSpotCompiledCode::dataSectionAlignment(compiled_code) <= _constants->alignment(), "Alignment inside constants section is restricted by alignment of section begin"); _constants_size = data_section()->length(); - if (_constants_size > 0) { - _constants_size = align_size_up(_constants_size, _constants->alignment()); - } _data_section_patches_handle = JNIHandles::make_local(HotSpotCompiledCode::dataSectionPatches(compiled_code));