1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
313 exit(3); |
313 exit(3); |
314 } |
314 } |
315 } |
315 } |
316 } |
316 } |
317 |
317 |
|
318 void report_insufficient_metaspace(size_t required_size) { |
|
319 warning("\nThe MaxMetaspaceSize of " SIZE_FORMAT " bytes is not large enough.\n" |
|
320 "Either don't specify the -XX:MaxMetaspaceSize=<size>\n" |
|
321 "or increase the size to at least " SIZE_FORMAT ".\n", |
|
322 MaxMetaspaceSize, required_size); |
|
323 exit(2); |
|
324 } |
|
325 |
318 static bool error_reported = false; |
326 static bool error_reported = false; |
319 |
327 |
320 // call this when the VM is dying--it might loosen some asserts |
328 // call this when the VM is dying--it might loosen some asserts |
321 void set_error_reported() { |
329 void set_error_reported() { |
322 error_reported = true; |
330 error_reported = true; |