Skip to content

Commit

Permalink
SapMachine SAP#1550: Disable use of backtrace() on PPC platforms by d…
Browse files Browse the repository at this point in the history
…efault

Also add a missing disenroll() call to the delayed enabling task.

(cherry picked from commit fe52747)
  • Loading branch information
schmelter-sap authored and RealCLanger committed Jul 30, 2024
1 parent d20cbf6 commit e9af1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/hotspot/os/posix/malloctrace/mallocTracePosix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2449,6 +2449,7 @@ class MallocTraceEnablePeriodicTask : public PeriodicTask {
void MallocTraceEnablePeriodicTask::task() {
enable_from_flags();
enable_delayed_dump();
disenroll();
}

} // namespace mallocStatImpl
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ const int ObjectAlignmentInBytes = 8;
"malloc trace if enabled at startup.") \
range(1, 1000) \
\
product(bool, MallocTraceUseBacktrace, true, \
product(bool, MallocTraceUseBacktrace, PPC_ONLY(false) NOT_PPC(true), \
"If set we use the backtrace() call to sample the stacks of " \
"the malloc trace if enabled at startup. Note that while this " \
"creates better stack traces, it is also slower and not " \
Expand Down

0 comments on commit e9af1e7

Please sign in to comment.