comparison src/share/vm/ci/ciUtilities.hpp @ 6972:bd7a7ce2e264

6830717: replay of compilations would help with debugging Summary: When java process crashed in compiler thread, repeat the compilation process will help finding root cause. This is done with using SA dump application class data and replay data from core dump, then use debug version of jvm to recompile the problematic java method. Reviewed-by: kvn, twisti, sspitsyn Contributed-by: yumin.qi@oracle.com
author minqi
date Mon, 12 Nov 2012 14:03:53 -0800
parents f95d63e2154a
children 2cb439954abf ef57c43512d6
comparison
equal deleted inserted replaced
6965:3be318ecfae5 6972:bd7a7ce2e264
1 /* 1 /*
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2012, 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.
78 assert(IS_IN_VM, "must be in vm state"); 78 assert(IS_IN_VM, "must be in vm state");
79 79
80 #define GUARDED_VM_ENTRY(action) \ 80 #define GUARDED_VM_ENTRY(action) \
81 {if (IS_IN_VM) { action } else { VM_ENTRY_MARK; { action }}} 81 {if (IS_IN_VM) { action } else { VM_ENTRY_MARK; { action }}}
82 82
83 #define GUARDED_VM_QUICK_ENTRY(action) \
84 {if (IS_IN_VM) { action } else { VM_QUICK_ENTRY_MARK; { action }}}
85
83 // Redefine this later. 86 // Redefine this later.
84 #define KILL_COMPILE_ON_FATAL_(result) \ 87 #define KILL_COMPILE_ON_FATAL_(result) \
85 THREAD); \ 88 THREAD); \
86 if (HAS_PENDING_EXCEPTION) { \ 89 if (HAS_PENDING_EXCEPTION) { \
87 if (PENDING_EXCEPTION->klass() == \ 90 if (PENDING_EXCEPTION->klass() == \