mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8008088: SA can hang the VM
Reviewed-by: mgronlun, sla, dholmes
This commit is contained in:
parent
7d28698730
commit
05d4ff0383
6 changed files with 138 additions and 70 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -92,6 +92,14 @@ void print_debug(const char* format,...) {
|
|||
}
|
||||
}
|
||||
|
||||
void print_error(const char* format,...) {
|
||||
va_list alist;
|
||||
va_start(alist, format);
|
||||
fputs("ERROR: ", stderr);
|
||||
vfprintf(stderr, format, alist);
|
||||
va_end(alist);
|
||||
}
|
||||
|
||||
bool is_debug() {
|
||||
return _libsaproc_debug;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue