comparison src/share/vm/utilities/exceptions.hpp @ 14297:febc6428bc79

8028275: Metaspace ShrinkGrowTest causes fatal error if run with JFR Summary: Clean up initialization from Threads::create_vm() so that exceptions cause vm_exit_during_initialzation without an exception mark. Reviewed-by: dholmes, hseigel
author coleenp
date Mon, 27 Jan 2014 23:12:13 -0500
parents 5d9995d16b26
children d8041d695d19
comparison
equal deleted inserted replaced
14296:50bb249de889 14297:febc6428bc79
1 /* 1 /*
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 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.
198 #define CHECK_(result) THREAD); if (HAS_PENDING_EXCEPTION) return result; (void)(0 198 #define CHECK_(result) THREAD); if (HAS_PENDING_EXCEPTION) return result; (void)(0
199 #define CHECK_0 CHECK_(0) 199 #define CHECK_0 CHECK_(0)
200 #define CHECK_NH CHECK_(Handle()) 200 #define CHECK_NH CHECK_(Handle())
201 #define CHECK_NULL CHECK_(NULL) 201 #define CHECK_NULL CHECK_(NULL)
202 #define CHECK_false CHECK_(false) 202 #define CHECK_false CHECK_(false)
203 #define CHECK_JNI_ERR CHECK_(JNI_ERR)
203 204
204 #define CHECK_AND_CLEAR THREAD); if (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return; } (void)(0 205 #define CHECK_AND_CLEAR THREAD); if (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return; } (void)(0
205 #define CHECK_AND_CLEAR_(result) THREAD); if (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return result; } (void)(0 206 #define CHECK_AND_CLEAR_(result) THREAD); if (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return result; } (void)(0
206 #define CHECK_AND_CLEAR_0 CHECK_AND_CLEAR_(0) 207 #define CHECK_AND_CLEAR_0 CHECK_AND_CLEAR_(0)
207 #define CHECK_AND_CLEAR_NH CHECK_AND_CLEAR_(Handle()) 208 #define CHECK_AND_CLEAR_NH CHECK_AND_CLEAR_(Handle())