Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/graphKit.cpp @ 22833:6e8e0bf87bbe
8069412: Locks need better debug-printing support
Summary: Added better debug-printing support and enhanced LogCompilation tool
Reviewed-by: kvn, roland, dholmes
author | drchase |
---|---|
date | Fri, 20 Feb 2015 22:12:53 -0500 |
parents | e7b3d177adda |
children | 4eeec0cdeb6a |
comparison
equal
deleted
inserted
replaced
22832:9d6eb2757167 | 22833:6e8e0bf87bbe |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2015, 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. |
3209 // Memory barrier to avoid floating things down past the locked region | 3209 // Memory barrier to avoid floating things down past the locked region |
3210 insert_mem_bar(Op_MemBarReleaseLock); | 3210 insert_mem_bar(Op_MemBarReleaseLock); |
3211 | 3211 |
3212 const TypeFunc *tf = OptoRuntime::complete_monitor_exit_Type(); | 3212 const TypeFunc *tf = OptoRuntime::complete_monitor_exit_Type(); |
3213 UnlockNode *unlock = new (C) UnlockNode(C, tf); | 3213 UnlockNode *unlock = new (C) UnlockNode(C, tf); |
3214 #ifdef ASSERT | |
3215 unlock->set_dbg_jvms(sync_jvms()); | |
3216 #endif | |
3214 uint raw_idx = Compile::AliasIdxRaw; | 3217 uint raw_idx = Compile::AliasIdxRaw; |
3215 unlock->init_req( TypeFunc::Control, control() ); | 3218 unlock->init_req( TypeFunc::Control, control() ); |
3216 unlock->init_req( TypeFunc::Memory , memory(raw_idx) ); | 3219 unlock->init_req( TypeFunc::Memory , memory(raw_idx) ); |
3217 unlock->init_req( TypeFunc::I_O , top() ) ; // does no i/o | 3220 unlock->init_req( TypeFunc::I_O , top() ) ; // does no i/o |
3218 unlock->init_req( TypeFunc::FramePtr, frameptr() ); | 3221 unlock->init_req( TypeFunc::FramePtr, frameptr() ); |