Mercurial > hg > openjdk > jdk9 > hotspot
changeset 12714:dabd810a9825
8165358: vmassert_status is not debug-only
Reviewed-by: dsamersoff, stuefe, zgu
author | dholmes |
---|---|
date | Thu, 23 Mar 2017 17:15:33 -0400 |
parents | 838393a7baa6 |
children | c68024d52834 |
files | src/share/vm/utilities/debug.hpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/utilities/debug.hpp Thu Mar 23 15:06:58 2017 +0100 +++ b/src/share/vm/utilities/debug.hpp Thu Mar 23 17:15:33 2017 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -140,6 +140,9 @@ // For backward compatibility. #define assert(p, ...) vmassert(p, __VA_ARGS__) +#ifndef ASSERT +#define vmassert_status(p, status, msg) +#else // This version of vmassert is for use with checking return status from // library calls that return actual error values eg. EINVAL, // ENOMEM etc, rather than returning -1 and setting errno. @@ -155,6 +158,7 @@ BREAKPOINT; \ } \ } while (0) +#endif // For backward compatibility. #define assert_status(p, status, msg) vmassert_status(p, status, msg)