Mercurial > hg > truffle
comparison src/share/vm/utilities/debug.cpp @ 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 | 78bbf4d43a14 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20585:90297adbda9d | 20586:03e6d34be1f5 |
---|---|
264 void report_out_of_shared_space(SharedSpaceType shared_space) { | 264 void report_out_of_shared_space(SharedSpaceType shared_space) { |
265 static const char* name[] = { | 265 static const char* name[] = { |
266 "native memory for metadata", | 266 "native memory for metadata", |
267 "shared read only space", | 267 "shared read only space", |
268 "shared read write space", | 268 "shared read write space", |
269 "shared miscellaneous data space" | 269 "shared miscellaneous data space", |
270 "shared miscellaneous code space" | |
270 }; | 271 }; |
271 static const char* flag[] = { | 272 static const char* flag[] = { |
272 "Metaspace", | 273 "Metaspace", |
273 "SharedReadOnlySize", | 274 "SharedReadOnlySize", |
274 "SharedReadWriteSize", | 275 "SharedReadWriteSize", |
275 "SharedMiscDataSize" | 276 "SharedMiscDataSize", |
277 "SharedMiscCodeSize" | |
276 }; | 278 }; |
277 | 279 |
278 warning("\nThe %s is not large enough\n" | 280 warning("\nThe %s is not large enough\n" |
279 "to preload requested classes. Use -XX:%s=\n" | 281 "to preload requested classes. Use -XX:%s=<size>\n" |
280 "to increase the initial size of %s.\n", | 282 "to increase the initial size of %s.\n", |
281 name[shared_space], flag[shared_space], name[shared_space]); | 283 name[shared_space], flag[shared_space], name[shared_space]); |
282 exit(2); | 284 exit(2); |
283 } | 285 } |
284 | 286 |