A DESCRIPTION OF THE PROBLEM : The initial CodeBuffer layout is depicted in file src/hotspot/share/asm/codeBuffer.cpp as below, and the order is code, stubs and constants. ``` // The structure of the CodeBuffer while code is being accumulated: // // _total_start -> \ // _insts._start -> +----------------+ // | | // | Code | // | | // _stubs._start -> |----------------| // | | // | Stubs | (also handlers for deopt/exception) // | | // _consts._start -> |----------------| // | | // | Constants | // | | // +----------------+ // + _total_size -> | | After JKD-6961697, constants section was moved to the front of code section, but this layout was not updated correspondingly, which is misunderstanding. Therefore, we'd better to fix it.
|