equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. |
38 #include "runtime/vm_operations.hpp" |
38 #include "runtime/vm_operations.hpp" |
39 #include "services/runtimeService.hpp" |
39 #include "services/runtimeService.hpp" |
40 #include "trace/tracing.hpp" |
40 #include "trace/tracing.hpp" |
41 #include "utilities/dtrace.hpp" |
41 #include "utilities/dtrace.hpp" |
42 #include "utilities/events.hpp" |
42 #include "utilities/events.hpp" |
|
43 #include "utilities/vmError.hpp" |
43 #include "utilities/xmlstream.hpp" |
44 #include "utilities/xmlstream.hpp" |
44 |
45 |
45 // Dummy VM operation to act as first element in our circular double-linked list |
46 // Dummy VM operation to act as first element in our circular double-linked list |
46 class VM_Dummy: public VM_Operation { |
47 class VM_Dummy: public VM_Operation { |
47 VMOp_Type type() const { return VMOp_Dummy; } |
48 VMOp_Type type() const { return VMOp_Dummy; } |
431 bool timedout = |
432 bool timedout = |
432 VMOperationQueue_lock->wait(Mutex::_no_safepoint_check_flag, |
433 VMOperationQueue_lock->wait(Mutex::_no_safepoint_check_flag, |
433 GuaranteedSafepointInterval); |
434 GuaranteedSafepointInterval); |
434 |
435 |
435 // Support for self destruction |
436 // Support for self destruction |
436 if ((SelfDestructTimer != 0) && !is_error_reported() && |
437 if ((SelfDestructTimer != 0) && !VMError::is_error_reported() && |
437 (os::elapsedTime() > (double)SelfDestructTimer * 60.0)) { |
438 (os::elapsedTime() > (double)SelfDestructTimer * 60.0)) { |
438 tty->print_cr("VM self-destructed"); |
439 tty->print_cr("VM self-destructed"); |
439 exit(-1); |
440 exit(-1); |
440 } |
441 } |
441 |
442 |