Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/compiledIC.hpp @ 12294:891687731b59
7009641: Don't fail VM when CodeCache is full
Summary: Allocation in the code cache returns NULL instead of failing the entire VM
Reviewed-by: kvn, iveresov
author | anoll |
---|---|
date | Tue, 24 Sep 2013 15:56:25 +0200 |
parents | a6e09d6dd8e5 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
12274:8a6a85321d3a | 12294:891687731b59 |
---|---|
224 // | 224 // |
225 // They all takes a TRAP argument, since they can cause a GC if the inline-cache buffer is full. | 225 // They all takes a TRAP argument, since they can cause a GC if the inline-cache buffer is full. |
226 // | 226 // |
227 void set_to_clean(); // Can only be called during a safepoint operation | 227 void set_to_clean(); // Can only be called during a safepoint operation |
228 void set_to_monomorphic(CompiledICInfo& info); | 228 void set_to_monomorphic(CompiledICInfo& info); |
229 void set_to_megamorphic(CallInfo* call_info, Bytecodes::Code bytecode, TRAPS); | 229 |
230 // Returns true if successful and false otherwise. The call can fail if memory | |
231 // allocation in the code cache fails. | |
232 bool set_to_megamorphic(CallInfo* call_info, Bytecodes::Code bytecode, TRAPS); | |
230 | 233 |
231 static void compute_monomorphic_entry(methodHandle method, KlassHandle receiver_klass, | 234 static void compute_monomorphic_entry(methodHandle method, KlassHandle receiver_klass, |
232 bool is_optimized, bool static_bound, CompiledICInfo& info, TRAPS); | 235 bool is_optimized, bool static_bound, CompiledICInfo& info, TRAPS); |
233 | 236 |
234 // Location | 237 // Location |