changeset 1751:832443ed76f7

2009-03-12 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/share/vm/shark/sharkBlock.cpp (SharkBlock::parse_bytecode): Ensure that state setup code is the first code for the block.
author Gary Benson <gbenson@redhat.com>
date Thu, 12 Mar 2009 07:08:14 -0400
parents 66f144a0dbee
children 1caf618d2b4c
files ChangeLog ports/hotspot/src/share/vm/shark/sharkBlock.cpp
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Mar 11 22:43:53 2009 +0100
+++ b/ChangeLog	Thu Mar 12 07:08:14 2009 -0400
@@ -1,3 +1,9 @@
+2009-03-12  Gary Benson  <gbenson@redhat.com>
+
+	* ports/hotspot/src/share/vm/shark/sharkBlock.cpp
+	(SharkBlock::parse_bytecode): Ensure that state setup
+	code is the first code for the block.
+
 2009-03-11  Matthias Klose  <doko@ubuntu.com>
 
 	* patches/hotspot/default/icedtea-params-cast-size_t.patch: Update for
--- a/ports/hotspot/src/share/vm/shark/sharkBlock.cpp	Wed Mar 11 22:43:53 2009 +0100
+++ b/ports/hotspot/src/share/vm/shark/sharkBlock.cpp	Thu Mar 12 07:08:14 2009 -0400
@@ -33,6 +33,11 @@
   SharkValue *a, *b, *c, *d;
   int i;
 
+  // Ensure the current state is initialized before we emit any code,
+  // so that any setup code for the state is at the start of the block
+  current_state();
+
+  // Parse the bytecodes
   iter()->reset_to_bci(start);
   while (iter()->next_bci() < limit) {
     NOT_PRODUCT(a = b = c = d = NULL);