Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalEnv.cpp @ 7154:5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 12 Dec 2012 21:36:40 +0100 |
parents | ce248dc0a656 |
children | a023cfaeb92e |
comparison
equal
deleted
inserted
replaced
7153:c421c19b7bf8 | 7154:5d0bb7d52783 |
---|---|
440 if (!check_for_system_dictionary_modification(dependencies)) { | 440 if (!check_for_system_dictionary_modification(dependencies)) { |
441 // While not a true deoptimization, it is a preemptive decompile. | 441 // While not a true deoptimization, it is a preemptive decompile. |
442 MethodData* mdp = method()->method_data(); | 442 MethodData* mdp = method()->method_data(); |
443 if (mdp != NULL) { | 443 if (mdp != NULL) { |
444 mdp->inc_decompile_count(); | 444 mdp->inc_decompile_count(); |
445 if (mdp->decompile_count() > (uint)PerMethodRecompilationCutoff) { | |
446 // TODO (chaeubl) enable this in the fastdebug build only once we are more stable | |
447 ResourceMark m; | |
448 tty->print_cr("WARN: endless recompilation of %s. Method was set to not compilable.", method()->name_and_sig_as_C_string()); | |
449 //ShouldNotReachHere(); | |
450 } | |
445 } | 451 } |
446 | 452 |
447 // All buffers in the CodeBuffer are allocated in the CodeCache. | 453 // All buffers in the CodeBuffer are allocated in the CodeCache. |
448 // If the code buffer is created on each compile attempt | 454 // If the code buffer is created on each compile attempt |
449 // as in C2, then it must be freed. | 455 // as in C2, then it must be freed. |