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

X86 allocation always assumes shared allocation if TLAB is disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 12
    • None
    • hotspot
    • None

      The allocation sequence should be:
        // Allocate the instance:
        // If TLAB is enabled:
        // Try to allocate in the TLAB.
        // If fails, go to the slow path.
        // Else If inline contiguous allocations are enabled:
        // Try to allocate in eden.
        // If fails due to heap end, go to slow path.
        //
        // If TLAB is enabled OR inline contiguous is enabled:
        // Initialize the allocation.
        // Exit.
        //
        // Go to slow path.

      But by mistake, when doing this for x86, I seem to have made the the "If inline contiguous" become "always try inline contiguous".

            jcbeyler Jean Christophe Beyler
            jcbeyler Jean Christophe Beyler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: