OSDN Git Service

Move nio direct byte buffers onto the Java heap.
authorElliott Hughes <enh@google.com>
Mon, 10 Jan 2011 23:30:18 +0000 (15:30 -0800)
committerElliott Hughes <enh@google.com>
Mon, 10 Jan 2011 23:35:05 +0000 (15:35 -0800)
commitf5949168d4142cde1582117173b03c614b632938
tree8bce08418de8ee87218bfb392826840f7ac457c4
parent5e261cd107a923ffc4d4329aa9bd19da220981c8
Move nio direct byte buffers onto the Java heap.

Specifically, implement VMRuntime.newNonMovableArray and VMRuntime.addressOf.
For now these are pretty trivial because we don't have a copying collector,
but this (a) prevents code from allocating arbitrary amounts of direct byte
buffer without being charged for it, and (b) lets us move to a copying
collector in future.

Change-Id: I5de156dc8ac4ab5c997e18d447f635eb01ff08ab
vm/native/dalvik_system_VMRuntime.c