hotspot/src/share/vm/code/compiledIC.hpp
changeset 20072 6da61000acff
parent 17094 29c4955396d2
child 22234 da823d78ad65
--- a/hotspot/src/share/vm/code/compiledIC.hpp	Fri Sep 20 11:17:04 2013 -0700
+++ b/hotspot/src/share/vm/code/compiledIC.hpp	Tue Sep 24 15:56:25 2013 +0200
@@ -226,7 +226,10 @@
   //
   void set_to_clean();  // Can only be called during a safepoint operation
   void set_to_monomorphic(CompiledICInfo& info);
-  void set_to_megamorphic(CallInfo* call_info, Bytecodes::Code bytecode, TRAPS);
+
+  // Returns true if successful and false otherwise. The call can fail if memory
+  // allocation in the code cache fails.
+  bool set_to_megamorphic(CallInfo* call_info, Bytecodes::Code bytecode, TRAPS);
 
   static void compute_monomorphic_entry(methodHandle method, KlassHandle receiver_klass,
                                         bool is_optimized, bool static_bound, CompiledICInfo& info, TRAPS);