Commit Graph

15785 Commits (dfbababd111aac26d8fe20e5d6c4d375763efdc3)
 

Author SHA1 Message Date
Andy Wilkinson 60ac2e5c09 Reduce the amount of garbage produced by JarFile
Previously, working with a JarFile created a large amount of garbage
that was allocated on the thread local allocation buffer (TLAB).
The TLAB allocations made a significant contribution to GC pressure
and slowed down startup. This commit reduces the amount of garbage
by making a number of changes.

Reading from a RandomAccessDataFile has been reworked to avoid
creating new RandomAccessFile instances. A single RandomAccessFile
is now created for an entire jar file and it is used to read data from
anywhere in that jar file, including entries in nested jar files. To
ensure that reads remain thread-safe, a lock is taken on the
RandomAccessFile that is shared by all RandomAccessDataFile instances
that are provided access to (portions of) the same jar file.

Reading all of the bytes from a RandomAccessData has been reworked to
avoid the use of an InputStream that was created, used to read the
data, and then thrown away. In place of the InputStream-based
mechanism a method has been introduced that returns all of the
RandomAccessData as a byte[]. Building on this change, a method has
also been introduced to read a portion of a RandomAccessData as a
byte[]. This avoids the need to create a new RandomAccessData
subsection where the subsection was only used to read its entire
contents and then thrown away.

Decoding of an MS-DOS datetime has been reworked to use LocalDataTime
rather than GregorianCalendar. The former produces less garbage than
the latter.

Closes gh-12226
7 years ago
Stephane Nicoll 569bad16da Polish 7 years ago
Stephane Nicoll b4c901cab6 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 14ff776f68 Fix TestRestTemplate example in the doc
Closes gh-12132
7 years ago
Phillip Webb c0d79b9273 Rationalize multi-document config file handling
Update `PropertySourceLoader` so that it no longer needs to deal with
matching multi-document files using the `spring.profile` property. The
loader now simply returns one or more `PropertSource` instances for a
given `Resource`.

All property matching now occurs in the `ConfigFileApplicationListener`.
This allows document processing logic to be contained in a single place,
and allows us to rationalize the algorithm so that negative matching
profiles are processed last.

Fixes gh-12159
7 years ago
Phillip Webb 3d8f760ea0 Upgrade to reactor Bismuth-BUILD-SNAPSHOT
See gh-12233
7 years ago
Phillip Webb 145400505d Only validate target values on zero depth
Update `ValidationBindHandler` so that validation only occurs when a
value is bound, or the bind depth is zero. This prevents validation from
triggering getters which may throw an exception.

Fixes gh-12227
7 years ago
Phillip Webb 3244836003 Port Locale sensitive test from 1.5.x 7 years ago
Phillip Webb fdf42ab9ec Merge branch '1.5.x' 7 years ago
Phillip Webb 98f58caeaf Reset default local after test completes 7 years ago
Phillip Webb 210342b75e Merge branch '1.5.x' 7 years ago
Phillip Webb 8f9c067a92 Polish 7 years ago
Madhura Bhave d8caac77f1 Merge branch '1.5.x' 7 years ago
Madhura Bhave 257e324bd5 Add tests for binding to enum with different locale
See gh-12213
7 years ago
Phillip Webb 29c3be3590 Polish 7 years ago
Stephane Nicoll 306c79f0de Merge branch '1.5.x' 7 years ago
Stephane Nicoll b4a7e1d64b Use toLowerCase() and toUpperCase() with Locale.ENGLISH
This commit updates all `toLowerCase()` and `toUpperCase` invocations to
use the variant that takes a `Locale` to avoid locale-specific side
effect.

Closes gh-12213
7 years ago
Andy Wilkinson 219b2d8c1e Upgrade to AssertJ 3.9.1
Closes gh-12224
7 years ago
Andy Wilkinson 8d73ab088a Document new endpoint infrastructure
Closes gh-10001
7 years ago
Stephane Nicoll cd522dadcd Revert "Add Kafka health indicator"
Closes gh-12225
7 years ago
Stephane Nicoll a309443ecc Merge pull request #12208 from kedar-joshi:documentation-polish
* pr/12208:
  Polish
7 years ago
Kedar Joshi b189d88b94 Polish
Closes gh-12208
7 years ago
Stephane Nicoll 8755b4a547 Merge pull request #12203 from dreis2211:polish-tomcat-tests
* pr/12203:
  Polish argument capturing in two Tomcat tests
7 years ago
dreis2211 cbabf5414c Polish argument capturing in two Tomcat tests
Closes gh-12203
7 years ago
Stephane Nicoll c3ae02a476 Merge pull request #12215 from izeye:doc-name
* pr/12215:
  Update doc to align with TomcatEmbeddedServletContainerFactory renaming
7 years ago
Johnny Lim dc715a352a Update doc to align with TomcatEmbeddedServletContainerFactory renaming
Closes gh-12215
7 years ago
Stephane Nicoll 8257fd9d2f Merge pull request #12210 from aheritier:patch-1
* pr/12210:
  Fix dependency management of hibernate-validator-annotation-processor
7 years ago
Arnaud Heritier 6359642509 Fix dependency management of hibernate-validator-annotation-processor
Closes gh-12210
7 years ago
Stephane Nicoll f73f283c11 Merge pull request #12211 from igor-suhorukov:master
* pr/12211:
  Polish
7 years ago
igor-suhorukov 98f4692c62 Polish
This commit changes invocations to immediately return the expression
instead of assigning it to a temporary variable. The method name should
be sufficient for callers to know exactly what will be returned.

Closes gh-12211
7 years ago
Andy Wilkinson c27fa7bf91 Polish ordering of version properties and managed dependencies 7 years ago
Stephane Nicoll d45910d5b7 Merge pull request #12202 from dreis2211:match-polish
* pr/12202:
  Polish contribution
  Polish
7 years ago
Stephane Nicoll 2641559231 Polish contribution
Closes gh-12202
7 years ago
dreis2211 e2fb093ccf Polish
See gh-12202
7 years ago
Stephane Nicoll 602f733f48 Merge pull request #12205 from izeye:polish-20180224
* pr/12205:
  Polish
7 years ago
Johnny Lim d441a8a89a Polish
Closes gh-12205
7 years ago
Andy Wilkinson 1314678890 Nest @EnableWebFluxSecurity to avoid overzealous Wildfly warnings
Closes gh-12174
7 years ago
Andy Wilkinson 800ddc5403 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 915eaf3447 Polish 7 years ago
Andy Wilkinson 85c7ed2746 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 746cc0f70b Make JarFile.size() return the number of entries in the jar
Closes gh-12195
7 years ago
Andy Wilkinson 73ad36d817 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 146858505f Synchronize on class loading lock in RestartClassLoader
Closes gh-12171
7 years ago
Andy Wilkinson 782ab2803e Polish documentation regarding target class proxying
Closes gh-12196
7 years ago
Stephane Nicoll 9b61df6a2b Polish 7 years ago
Stephane Nicoll 13b736b1cd Migrate remaining duration-based properties for Rabbit
Closes gh-12192
7 years ago
Andy Wilkinson 48656d0d53 Fix build warnings about use of ${artifactId}
See gh-11994
7 years ago
Stephane Nicoll cb1eed42b8 Polish 7 years ago
Stephane Nicoll e1fd9df7b9 Fix usage of management.server.add-application-context-header
Closes gh-12190
7 years ago
Stephane Nicoll 976a23d977 Fix duration unit of spring.messages.cache-duration
Closes gh-12183
7 years ago