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

VolatileImage.validate() always returns IMAGE_RESTORED on first attempt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • client-libs
    • None
    • 2d
    • b53
    • generic
    • solaris_9

      VolatileImage.validate() will always return IMAGE_RESTORED the first time
      that method is called for an image. One would expect that the return value
      would be IMAGE_OK on the first try. Note that this is only the case when
      isAccelerated() returns true.

      This is reproducible on 1.4.1, 1.4.2, 5.0, and Mustang. I discovered this
      problem while working on the fix for another bug (4902507).

      To reproduce, compile and run the attached testcase on a system that has
      accelerated VolatileImages. You should see the following output:
      in paint()...
      creating VolatileImage
      Iteration 0: validate returned IMAGE_RESTORED
      Iteration 1: validate returned IMAGE_OK
      Iteration 2: validate returned IMAGE_OK
      Iteration 3: validate returned IMAGE_OK
      Iteration 4: validate returned IMAGE_OK

      ###@###.### 2005-1-29 01:58:02 GMT

            chaasesunw Chet Haase (Inactive)
            campbell Christopher Campbell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: