-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46542 from makortel/pluginManagerExcludeMaxMemory…
…Preload Exclude PluginManager cache from MaxMemoryPreload monitoring
- Loading branch information
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "PauseMaxMemoryPreloadSentry.h" | ||
|
||
// By default do nothing, but add "hooks" that MaxMemoryPreload can | ||
// override with LD_PRELOAD | ||
void pauseMaxMemoryPreload() {} | ||
void unpauseMaxMemoryPreload() {} | ||
|
||
namespace edm { | ||
PauseMaxMemoryPreloadSentry::PauseMaxMemoryPreloadSentry() { pauseMaxMemoryPreload(); } | ||
PauseMaxMemoryPreloadSentry::~PauseMaxMemoryPreloadSentry() { unpauseMaxMemoryPreload(); } | ||
} // namespace edm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef FWCore_PluginManager_src_PauseMaxMemoryPreloadSentry_h | ||
#define FWCore_PluginManager_src_PauseMaxMemoryPreloadSentry_h | ||
|
||
namespace edm { | ||
class PauseMaxMemoryPreloadSentry { | ||
public: | ||
PauseMaxMemoryPreloadSentry(); | ||
~PauseMaxMemoryPreloadSentry(); | ||
|
||
PauseMaxMemoryPreloadSentry(const PauseMaxMemoryPreloadSentry&) = delete; | ||
PauseMaxMemoryPreloadSentry(PauseMaxMemoryPreloadSentry&&) = delete; | ||
PauseMaxMemoryPreloadSentry& operator=(const PauseMaxMemoryPreloadSentry&) = delete; | ||
PauseMaxMemoryPreloadSentry& operator=(PauseMaxMemoryPreloadSentry&&) = delete; | ||
}; | ||
} // namespace edm | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters