Mercurial > hg > graal-compiler
diff src/share/vm/memory/metaspaceShared.hpp @ 20586:03e6d34be1f5
8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
Summary: estimate the minimum required size for the misc code region and check if the specified misc code region size meets the minimum size requirement
Reviewed-by: jiangli, dholmes
author | ccheung |
---|---|
date | Thu, 30 Oct 2014 13:38:00 -0700 |
parents | b23a19cd0536 |
children | 4cb90023bf2b |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspaceShared.hpp Fri Oct 24 10:28:19 2014 -0700 +++ b/src/share/vm/memory/metaspaceShared.hpp Thu Oct 30 13:38:00 2014 -0700 @@ -57,11 +57,16 @@ static bool _archive_loading_failed; public: enum { - vtbl_list_size = 17, // number of entries in the shared space vtable list. - num_virtuals = 200 // maximum number of virtual functions - // If virtual functions are added to Metadata, - // this number needs to be increased. Also, - // SharedMiscCodeSize will need to be increased. + vtbl_list_size = 17, // number of entries in the shared space vtable list. + num_virtuals = 200, // maximum number of virtual functions + // If virtual functions are added to Metadata, + // this number needs to be increased. Also, + // SharedMiscCodeSize will need to be increased. + // The following 2 sizes were based on + // MetaspaceShared::generate_vtable_methods() + vtbl_method_size = 16, // conservative size of the mov1 and jmp instructions + // for the x64 platform + vtbl_common_code_size = (1*K) // conservative size of the "common_code" for the x64 platform }; enum {