densh on master
Scala 2.12 support and updated … Merge pull request #115 from lo… (compare)
scala.Array
everything should be off-heap
object Play extends App {
import scala.offheap
implicit val alloc = offheap.malloc
val arr = new scala.Array[offheap.Array[Int]](Int.MaxValue/4)
var counter = 0
while (counter < Int.MaxValue/4) Region { implicit alloc =>
arr(counter) == offheap.Array.fromArray("foobar".getBytes)
counter+=1
}
}
arr
anymore, because its elements have been deallocated right away
-Xmx
memory, right?