Patent ID: 8200938

Claim:
A method to automate isolation of a native code and a platform-independent code in a computer program, the method comprising: executing the platform-independent code in a first process; executing the native code in a second process; and allocating a direct buffer from one selected from the group consisting of the first process and the second process, wherein the direct buffer is mapped to a first virtual address in the first process and mapped to a second virtual address in the second process, wherein operations of the native code are isolated from memory and other system resources belonging to the platform-independent code, and wherein the first process and the second process execute under an operating system as user processes, and wherein the allocating the direct buffer step comprises: requesting, by the platform-independent code using an operating system call, a shared memory region from the operating system using a direct buffer reference; obtaining, from the operating system, a shared memory region identifier and the first virtual address; and configuring the direct buffer using the shared memory region identifier and the first virtual address.