Mercurial > hg > truffle
comparison src/share/vm/c1/c1_LIRGenerator.cpp @ 1213:6deeaebad47a
6902182: 4/4 Starting with jdwp agent should not incur performance penalty
Summary: Rename can_post_exceptions support to can_post_on_exceptions. Add support for should_post_on_exceptions flag to permit per JavaThread optimizations.
Reviewed-by: never, kvn, dcubed
Contributed-by: tom.deneau@amd.com
author | dcubed |
---|---|
date | Mon, 01 Feb 2010 17:35:05 -0700 |
parents | 323bd24c6520 |
children | 3cf667df43ef |
comparison
equal
deleted
inserted
replaced
1196:f3345b7b01b4 | 1213:6deeaebad47a |
---|---|
1 /* | 1 /* |
2 * Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 2005-2010 Sun Microsystems, Inc. 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. |
1763 (x->exception()->as_NewInstance() == NULL && x->exception()->as_ExceptionObject() == NULL)) { | 1763 (x->exception()->as_NewInstance() == NULL && x->exception()->as_ExceptionObject() == NULL)) { |
1764 // if the exception object wasn't created using new then it might be null. | 1764 // if the exception object wasn't created using new then it might be null. |
1765 __ null_check(exception_opr, new CodeEmitInfo(info, true)); | 1765 __ null_check(exception_opr, new CodeEmitInfo(info, true)); |
1766 } | 1766 } |
1767 | 1767 |
1768 if (compilation()->env()->jvmti_can_post_exceptions() && | 1768 if (compilation()->env()->jvmti_can_post_on_exceptions() && |
1769 !block()->is_set(BlockBegin::default_exception_handler_flag)) { | 1769 !block()->is_set(BlockBegin::default_exception_handler_flag)) { |
1770 // we need to go through the exception lookup path to get JVMTI | 1770 // we need to go through the exception lookup path to get JVMTI |
1771 // notification done | 1771 // notification done |
1772 unwind = false; | 1772 unwind = false; |
1773 } | 1773 } |