3157N/A * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1410N/A// Simple class to format the ctor arguments into a fixed-sized buffer. 3934N/A// Use resource area for buffer 2037N/A // Given that the constructor does a vsnprintf we can assume that 2037N/A // _buf is already initialized. 1410N/A// Used to format messages for assert(), guarantee(), fatal(), etc. 1410N/A#
else // #ifndef USE_REPEATED_ASSERTS 1410N/A#
endif // #ifndef USE_REPEATED_ASSERTS 0N/A// This version of assert is for use with checking return status from 0N/A// library calls that return actual error values eg. EINVAL, 0N/A// ENOMEM etc, rather than returning -1 and setting errno. 0N/A// When the status is not what is expected it is very useful to know 0N/A// what status was actually returned, so we pass the status variable as 0N/A// an extra arg and use strerror to convert it to a meaningful string 0N/A// like "Invalid argument", "out of memory" etc 0N/A// Do not assert this condition if there's already another error reported. 0N/A// guarantee is like assert except it's always executed -- use it for 1410N/A// cheap tests that catch errors that would otherwise be hard to find. 0N/A// guarantee is also used for Verify options. 0N/A// error reporting helper functions 2062N/A// out of shared space reporting 0N/A// out of memory reporting 0N/A// Support for self-destruct 1410N/A/* Test assert(), fatal(), guarantee(), etc. */ 1879N/A#
endif // SHARE_VM_UTILITIES_DEBUG_HPP