tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Jayaprakash <>
Subject [Native:JNI] Stability, usage and maintenance of shared memory and mutex code
Date Sat, 27 Aug 2011 07:15:24 GMT
Hi, I was browsing through the Tomcat Native source code and noticed the
Shared memory and Mutex Java classes.

So, I tried creating a quick prototype and to my pleasant surprise it worked
off the bat on 64 bit Windows 7 . I tried the jni/ and
jni/ classes to share memory between 2 processes coordinated by a

I'm writing to understand:

   1. Why the jni/ and jni/ are not used in the Tomcat
   2. Have they been superseded by something else like NIO Mmap files or
   3. Is this code going to be deprecated or go out of maintenance since it
   is not used? I do not even see test cases for these except for
   jni/ and jni/
   4. Does this work well on Linux too?
   5. Are there any performance considerations, gotchas etc - considering
   that this is an internal module with "light" documentation?

For the curious, here is the test code I wrote (CC BY-SA) I would be overjoyed if this
was incorporated into the unit tests for Tomcat Native.

Ashwin Jayaprakash (

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message