In JavaHL: Be a better JVM citizen by not changing global locale state that applies to all java code and by returning apr allocated memory back to the OS (or in this case the JVM and other modules).
In JavaHL: Be a better JVM citizen by not changing global locale state that
applies to all java code and by returning apr allocated memory back to the
OS (or in this case the JVM and other modules).

This change should considerably reduce the amount of memory used by Subclipse
after operations like merging.
(This same problem made easly AnkhSVN 2.0 versions unusable for many users,
 but nobody told us as it was hard to diagnose...)

* subversion/bindings/javahl/native/JNIUtil.cpp
  (JNIUtil::JNIGlobalInit): Don't change the C locale as that should be managed
    by the JVM instead of individual modules.
    (If everybody changes that setting, no module will work as expected...)

    Set the max free count of the global allocator.
    And use a subpool in a bit of Win32 code.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1154115 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion