hotspot/src/share/vm/opto/runtime.cpp
changeset 33626 3c94db05e903
parent 33611 9abd65805e19
parent 33470 0ce01b662ff2
child 35110 f19bcdf40799
child 35216 71c463a17b3b
--- a/hotspot/src/share/vm/opto/runtime.cpp	Fri Oct 30 00:02:37 2015 +0100
+++ b/hotspot/src/share/vm/opto/runtime.cpp	Thu Nov 05 19:31:57 2015 +0100
@@ -159,9 +159,13 @@
                                     const char *name, int is_fancy_jump,
                                     bool pass_tls,
                                     bool save_argument_registers,
-                                    bool return_pc ) {
+                                    bool return_pc) {
+
+  // Matching the default directive, we currently have no method to match.
+  DirectiveSet* directive = DirectivesStack::getDefaultDirective(CompileBroker::compiler(CompLevel_full_optimization));
   ResourceMark rm;
-  Compile C( env, gen, C_function, name, is_fancy_jump, pass_tls, save_argument_registers, return_pc );
+  Compile C( env, gen, C_function, name, is_fancy_jump, pass_tls, save_argument_registers, return_pc, directive);
+  DirectivesStack::release(directive);
   return  C.stub_entry_point();
 }