Direct hardware access by RTSJ-class "RawMemoryAccess"

Clemens Eisserer linuxhippy at gmail.com
Fri Dec 18 15:22:17 PST 2009


If you don't care about portability, sun.misc.Unsafe is what you are
looking for.

- Clemens

2009/12/9 Rene Bartsch <ML at bartschnet.de>:
> Hi,
>
> first, I'm new to the OpenJDK-MLs, so a "Hello" to all! :)
>
> JAVA has the advantage programmers don't have to mess around with memory management (especially
> pointers) which improves stability and resistence against hacking of JAVA programs a lot compared
> with e.g. C/C++.
>
> In my opinion this is very good, but there is one disadvantage:
>
> Programming hardware like actuators and sensors is very complicated. So I suggest to implement a
> class which allows direct access to hardware addresses. To have a solution as compatible as
> possible I suggest to implement the "RawMemoryAccess"-class from the RTSJ-specification in the
> OpenJDK JVM.
>
>
> To make sure the "RawMemoryAccess"-class isn't used to manipulate memory management, that class
> shall only be usable in some kind of security-context for hardware-driver programming.
>
> That way hardware-drivers with low platform-dependency can be easily developed in JAVA.
>
>
> Best regards,
>
> Renne
>
>
>


More information about the jdk7-dev mailing list