densh / scala-offheap

Experimental type-safe off-heap memory for Scala.
BSD 3-Clause "New" or "Revised" License
532 stars 35 forks source link

Revive unchecked mode #3

Closed densh closed 9 years ago

densh commented 9 years ago

In unchecked mode offheap classes are going to be desugared to value classes over Addr rather than Ref. Memory accesses will also become direct calls to unsafe. For this to work such classes will take more restricted kind of memory that guarantees that addresses are in fact physical addresses rather than virtual ones. This would improve performance at expense of safety.

densh commented 9 years ago

Fixed in https://github.com/densh/scala-offheap/commit/3a9ba42cc1219c1fb4ce75bfcfd9a1f9de2280b8