The OrderAccess class mostly uses the JNI-specific j-types (jbyte, jshort, jint, jlong). This has led to wide-spread pollution of j-types in the C++ code base.
Another problem is that when dealing with certain inherently not j-typed types like pointers, hacks were built that allowed them using _ptr member functions that had to be specialized on every architecture supported by Java.
As a remedy to the above mentioned problems, I propose to generalize the OrderAccess implementation to use templates instead.
Another problem is that when dealing with certain inherently not j-typed types like pointers, hacks were built that allowed them using _ptr member functions that had to be specialized on every architecture supported by Java.
As a remedy to the above mentioned problems, I propose to generalize the OrderAccess implementation to use templates instead.
- duplicates
-
JDK-8188813 Generalize OrderAccess to use templates
-
- Resolved
-