diff 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
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp	Wed Feb 11 18:56:26 2015 -0800
+++ b/src/share/vm/opto/graphKit.cpp	Fri Feb 20 22:12:53 2015 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2015, 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
@@ -3211,6 +3211,9 @@
 
   const TypeFunc *tf = OptoRuntime::complete_monitor_exit_Type();
   UnlockNode *unlock = new (C) UnlockNode(C, tf);
+#ifdef ASSERT
+  unlock->set_dbg_jvms(sync_jvms());
+#endif
   uint raw_idx = Compile::AliasIdxRaw;
   unlock->init_req( TypeFunc::Control, control() );
   unlock->init_req( TypeFunc::Memory , memory(raw_idx) );