costin 02/04/25 11:37:44 Modified: jk/native2/include jk_env.h Log: Added a 'recycle' method. Obviously malloc is cheap in C ( but it does have some syncs ! ), but we need to preserve the jni 'global references' and maybe in future pin the jbyteArrays. Revision Changes Path 1.13 +4 -5 jakarta-tomcat-connectors/jk/native2/include/jk_env.h Index: jk_env.h =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_env.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- jk_env.h 12 Apr 2002 21:49:03 -0000 1.12 +++ jk_env.h 25 Apr 2002 18:37:44 -0000 1.13 @@ -91,6 +91,7 @@ typedef struct jk_bean jk_bean_t; typedef struct jk_env jk_env_t; +extern struct jk_env *jk_env_globalEnv; /** * Factory used to create all jk objects. Factories are registered with @@ -184,13 +185,9 @@ * XXX Implement run-time change in the status/ctl workers. */ int ( JK_METHOD *setAttribute)(struct jk_env *env, struct jk_bean *bean, - char *name, void *value ); + char *name, void *value ); void * ( JK_METHOD *getAttribute)(struct jk_env *env, struct jk_bean *bean, char *name ); - - /* getBeanInfo() */ - - /* invoke() */ }; /** @@ -223,6 +220,8 @@ /** Release the env instance. The tmpPool will be recycled. */ int (JK_METHOD *releaseEnv)(struct jk_env *parent, struct jk_env *chld); + + int (JK_METHOD *recycleEnv)(struct jk_env *env); /* -------------------- Exceptions -------------------- */
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>