Confine JDBC driver to thread-affine apartment for Java 6 performance
commitcbc1ddba1bbe8843e0b31d39cb5c04f7b6518925
authorStephan Bergmann <sbergman@redhat.com>
Fri, 13 Jan 2012 08:38:07 +0000 (13 09:38 +0100)
committerStephan Bergmann <sbergman@redhat.com>
Fri, 13 Jan 2012 08:50:07 +0000 (13 09:50 +0100)
treecb35d778b217a9955ca86224e1078dc782c61522
parentd6f876434ff957ea6b5fd938fb3b779e4527c63f
Confine JDBC driver to thread-affine apartment for Java 6 performance

... so that the massive number of the JDBC driver's calls to JNI Attach/Detach-
CurrentThread are guaranteed not to happen on the main thread (where they are
extremely expensive, see
<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6978641> "Fix for 6929067
introduces additional overhead in thread creation/termination paths").

(cherry picked from commit bb59742bcf4883af5876a2ffadcc4a689e414b60)
connectivity/source/drivers/jdbc/exports.dxp
connectivity/source/drivers/jdbc/jservices.cxx
connectivity/source/drivers/jdbc/makefile.mk