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 1a97330 commit cf975f3
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 @@ -2522,6 +2522,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 @@ -695,7 +695,7 @@ define_pd_global(uint64_t,MaxRAM, 1ULL*G);
"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 cf975f3

Please sign in to comment.