Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [omr-dev] How to avoid OMR compiler static instance

Hi Irwin,

On 1 June 2018 at 05:31, Irwin D'Souza <dsouzai@xxxxxxxxxx> wrote:

Hm, actually after a deeper look into the code for JitConfig, it doesn't look like OpenJ9 uses TR::JitConfig::instance(). The global state can be seen in omr/compiler/env/JitConfig.hpp, some examples of where you'd only want one value is the vlogFileName and vlogFile file handle. There's also the _pseudoTOC (used only on power). The Monitor Table, AFAICT, is only used in OpenJ9.

As long as each Lua VM instance runs with the same compiler options, and shares the same code cache (so that the _pseudoTOC can be shared), I think this global state shouldn't pose a problem.

Okay thank you for having a look at this. 

Regards
Dibyendu 

Back to the top