Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8329174

update CodeBuffer layout in comment after constants section moved

XMLWordPrintable

    • b17
    • generic
    • generic

      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.


            kvn Vladimir Kozlov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: