changeset in /hg/icedtea: 2009-06-05 Gary Benson <gbenson at redh...

Gary Benson gbenson at redhat.com
Wed Jun 10 13:45:37 PDT 2009


changeset 99fc93351f7f in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=99fc93351f7f
description:
	2009-06-05  Gary Benson  <gbenson at redhat.com>

		* ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
		(SharkTopLevelBlock::acquire_method_lock): Removed constant
		pool lookup.

diffstat:

2 files changed, 13 insertions(+), 7 deletions(-)
ChangeLog                                               |    6 ++++++
ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp |   14 +++++++-------

diffs (38 lines):

diff -r 62021319ded8 -r 99fc93351f7f ChangeLog
--- a/ChangeLog	Fri Jun 05 06:47:14 2009 -0400
+++ b/ChangeLog	Fri Jun 05 12:12:00 2009 +0100
@@ -1,3 +1,9 @@ 2009-06-05  Gary Benson  <gbenson at redhat
+2009-06-05  Gary Benson  <gbenson at redhat.com>
+
+	* ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
+	(SharkTopLevelBlock::acquire_method_lock): Removed constant
+	pool lookup.
+
 2009-06-05  Gary Benson  <gbenson at redhat.com>
 
 	* ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
diff -r 62021319ded8 -r 99fc93351f7f ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp
--- a/ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp	Fri Jun 05 06:47:14 2009 -0400
+++ b/ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.cpp	Fri Jun 05 12:12:00 2009 +0100
@@ -1563,14 +1563,14 @@ void SharkTopLevelBlock::do_multianewarr
 
 void SharkTopLevelBlock::acquire_method_lock()
 {
+  Value *lockee;
+  if (target()->is_static())
+    lockee = builder()->CreateInlineOop(target()->holder()->java_mirror());
+  else
+    lockee = local(0)->jobject_value();
+
   iter()->force_bci(start()); // for the decache in acquire_lock
-  if (target()->is_static()) {
-    SharkConstantPool constants(this);
-    acquire_lock(constants.java_mirror(), EX_CHECK_NO_CATCH);
-  }
-  else {
-    acquire_lock(local(0)->jobject_value(), EX_CHECK_NO_CATCH);
-  }
+  acquire_lock(lockee, EX_CHECK_NO_CATCH);
 }
 
 void SharkTopLevelBlock::do_monitorenter()



More information about the distro-pkg-dev mailing list