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

G1: Improve HeapRegion::block_is_obj

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • gc
    • b02

      `HeapRegion::block_is_obj(const HeapWord* p)` returns where the block pointed by `p` is a proper obj (having a valid klass pointer).

      Because `p` points block-start, it must be in the allocated part of the region `[bottom, top)`, and never points *into* an object (i.e. not `is_continues_humongous()`).

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: