Mercurial > hg > truffle
comparison src/share/vm/runtime/os.hpp @ 17567:5656140324ed
8030763: Validate global memory allocation
Summary: Add length checks where necessary
Reviewed-by: coleenp, mschoene
author | hseigel |
---|---|
date | Thu, 13 Feb 2014 11:28:17 -0500 |
parents | da051ce490eb |
children | 3eed8712d410 364b73402247 |
comparison
equal
deleted
inserted
replaced
17566:bf4dc2e29b5c | 17567:5656140324ed |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2014, 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. |
467 static int message_box(const char* title, const char* message); | 467 static int message_box(const char* title, const char* message); |
468 static char* do_you_want_to_debug(const char* message); | 468 static char* do_you_want_to_debug(const char* message); |
469 | 469 |
470 // run cmd in a separate process and return its exit code; or -1 on failures | 470 // run cmd in a separate process and return its exit code; or -1 on failures |
471 static int fork_and_exec(char *cmd); | 471 static int fork_and_exec(char *cmd); |
472 | |
473 // Set file to send error reports. | |
474 static void set_error_file(const char *logfile); | |
475 | 472 |
476 // os::exit() is merged with vm_exit() | 473 // os::exit() is merged with vm_exit() |
477 // static void exit(int num); | 474 // static void exit(int num); |
478 | 475 |
479 // Terminate the VM, but don't exit the process | 476 // Terminate the VM, but don't exit the process |