axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Mantaut (JIRA)" <>
Subject [jira] [Issue Comment Deleted] (AXIS2C-1634) Env management in hash
Date Thu, 11 Apr 2013 22:05:18 GMT


Alex Mantaut updated AXIS2C-1634:

    Comment: was deleted

(was: After sending the patch I've realized that changing the interface of the hash can break
applications using it... I'll provide another patch more backward compatible soon.)
> Env management in hash
> ----------------------
>                 Key: AXIS2C-1634
>                 URL:
>             Project: Axis2-C
>          Issue Type: Sub-task
>          Components: core/engine
>    Affects Versions: 1.7.0
>            Reporter: Alex Mantaut
>              Labels: patch
>         Attachments: hash_env_option1.patch, hash_env_option2.patch
> It seems that axutil_hash was modified to have a reference of the environment, but its
use is not consistent across the hash interface...
> This means that you can create the hash and work with one environment at first (creating
variables and such) and then switch to another environment, releasing the variables in other
environment, this could cause problems with the allocator... (this happens specially when
you use multiple threads, with an 
> environment for every thread)
> The solution I've found is to uniformize the interface, just set the environment at first
and then use the same environment until destroying the hash (because the hash increses the
ref count of the environment it is sure the environment stored exists) 
> If you copy or create a new hash you will have to set the environment for the new hash...
> I looked through all the calls of the hash in the code and it works fine (I know it is
a big patch, but I think is usefull)
> Please let me know if any changes need to be done on the issue

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message