Skip to content

Commit d2f5bf0

Browse files
authored
- JVMUtil wrong location for the temp directory for producing heap dumps
1 parent 5d1fe79 commit d2f5bf0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
### Fixed
13+
14+
- JVMUtil wrong location for the temp directory for producing heap dumps
15+
1216
## [4.2.0] - 2024-01-10
1317

1418
### Added

models/JVMUtil.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ component singleton {
2727
*
2828
* @return The absolute path to the generated heap dump
2929
*/
30-
string function generateHeapDump( directoryPath ){
30+
string function generateHeapDump( directoryPath = getTempDirectory() ){
3131
// Create it if it doesn't exist
32-
if ( !directoryExists( arguments.directoryPath = getTempDirectory() ) ) {
32+
if ( !directoryExists( arguments.directoryPath ) ) {
3333
directoryCreate( arguments.directoryPath );
3434
}
3535

0 commit comments

Comments
 (0)