[gdal-dev] Sharing GDAL Dataset objects between threads (JNI)

Markus Schneider schneider at occamlabs.de
Mon Oct 14 04:16:49 PDT 2013


Hi Even,

Am 14.10.2013 13:10, schrieb Even Rouault:
> This is surprising. Are you seeing that with a particular driver or all drivers
> ?

I am experiencing this with ECW driver.

> I don't see any use of TLS on the Java side. There might be some use of TLS
> objects on the C side, for functions in cpl_path.cpp for example, but their use
> should be limited to the lifetime of the execution of a particular function, so
> that shouldn't cause problems in the scenario you describe.

I will try to prepare a minimal example to reproduce the issue. I will
also check if it occurs with a GeoTIFF.

>> Would it be hard to eliminate this behaviour (as it
>> would make pooling Dataset objects much easier and more efficient)?
> 
> Difficult to tell until we have understood what really happens...
> 
> Do you manage to reproduce that by running under Valgrind ? If so, that might
> help understanding what is going wrong.

I never used Valgrind, but with some help, I may be able to check
behaviour and report.

Best regards,
Markus

-- 
Markus Schneider
CEO

Occam Labs UG (haftungsbeschränkt)
Godesberger Allee 139
53175 Bonn, Germany

+49 228 93798874

http://www.occamlabs.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131014/17730348/attachment.pgp>


More information about the gdal-dev mailing list