diff src/share/vm/graal/graalCompilerToVM.cpp @ 9928:a9311ec68721

Avoid graph caching if immature or no profiling information was used for graph building.
author Christian Haeubl <haeubl@ssw.jku.at>
date Fri, 07 Jun 2013 14:36:45 +0200
parents 477fb9a9a06d
children 0f7ca53be929
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.cpp	Fri Jun 07 14:15:38 2013 +0200
+++ b/src/share/vm/graal/graalCompilerToVM.cpp	Fri Jun 07 14:36:45 2013 +0200
@@ -734,6 +734,8 @@
   set_int("typeProfileWidth", TypeProfileWidth);
   set_int("methodProfileWidth", MethodProfileWidth);
 
+  set_int("interpreterProfilingThreshold", InvocationCounter::get_ProfileLimit());
+
   set_int("tlabAlignmentReserve", (int32_t)ThreadLocalAllocBuffer::alignment_reserve());
   set_long("tlabIntArrayMarkWord", (intptr_t)markOopDesc::prototype()->copy_set_hash(0x2));
   set_long("heapTopAddress", (jlong)(address) Universe::heap()->top_addr());