JDK-8151233 : Unify CopySwap and CopyMemory tests
  • Type: Enhancement
  • Component: core-libs
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-04
  • Updated: 2016-03-31
  • Resolved: 2016-03-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b112Fixed
Related Reports
Relates :  
Description
As a temporary shortcut for JDK-8149159 I chose to copy the jdk/test/jdk/internal/misc/Unsafe/CopySwap.java test (which tests Unsafe.copySwapMemory) and just adapt it for testing Unsafe.copyMemory. However, a lot of the test code is the exact same, and having two copies of it is for obvious reasons not ideal.

The CopySwap and CopyMemory tests should be unified and to the extent possible the code should be shared.