diff src/share/vm/oops/methodData.cpp @ 8616:d343737786fe

changed profiling of exceptions so that the ExceptionSeen flag also works without GRAALVM
author Christian Haeubl <haeubl@ssw.jku.at>
date Thu, 28 Mar 2013 17:11:06 +0100
parents 91c79e13b9cf
children b9a918201d47
line wrap: on
line diff
--- a/src/share/vm/oops/methodData.cpp	Thu Mar 28 13:38:47 2013 +0100
+++ b/src/share/vm/oops/methodData.cpp	Thu Mar 28 17:11:06 2013 +0100
@@ -456,7 +456,7 @@
   return DataLayout::compute_size_in_bytes(cell_count);
 }
 
-#ifdef GRAALVM
+#ifdef GRAAL
 int MethodData::compute_extra_data_count(int data_size, int empty_bc_count) {
   if (!ProfileTraps) return 0;
 
@@ -735,7 +735,7 @@
 }
 
 bool MethodData::is_empty_data(int size_in_bytes, Bytecodes::Code code) {
-#ifdef GRAALVM
+#ifdef GRAAL
   return size_in_bytes == 0 && Bytecodes::can_trap(code);
 #else
   return size_in_bytes == 0;