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

G1BarrierSet pre/post_barrier reaccess control instead of using argument

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • hotspot

      The BarrierSet::{pre,post}_barrier functions take a "control" value as the second (ctl) argument. But for the G1 implementations at least (I've not looked at others) this argument is unused, with `__ ctrl()` being used instead. It seems like either the ctl argument isn't needed or it should be used instead of reaccessing. (I'm assuming the two expressions always provide the same value, else bad things can probably happen.)

            snatarajan Saranya Natarajan
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: