Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-190

Structure of org.jikesrvm.memorymanagers.mminterface.Selected is blocking compile time folding of static final booleans

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2.9.0, 2.9.0.1, 2.9.1
    • Fix Version/s: 3.2
    • Component/s: MMTk
    • Labels:
      None

      Description

      For example, see MM_Constants. Things like:

      public static final boolean GENERATE_GC_TRACE = Selected.Constraints.get().generateGCTrace();

      block javac compile time folding of anything that depends on GENERATE_GC_TRACE. This in turn, impacts VM_JavaHeader.getObjectHashCode (one important example).

      Since we're generating Selected, we should generate it in a way that flattens all of the constants it is trying to export to jikesrvm into "flat" static final booleans instead of generating method calls on final objects that block folding.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dgrove David Grove
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: