Mikhail Fursov wrote: > The solutions we have today: > > 1) If you have only a few methods to be affected: create separate JIT > instance without inliner and add method filters to EM configuration file. > Check > http://incubator.apache.org/harmony/subcomponents/drlvm/emguide.htmland > *.emconf files for details. > > 2) If you need to avoid inlining of special method in all Java methods you > can use 'skip_methods' parameter of inliner pass. See opt.emconf file to > check how to pass parameters to inliner. > > 3) Replace all calls to your method with VMHelperCall in translator. > Process > it as direct calls in codegenerator. This solution was already proposed by > Egor.
For the sake of completeness, there is one more solution 4) mark methods as 'native' in java sources and provide "native stub overrides" in vmcore/src/jit/native_overrides.cpp.