summaryrefslogtreecommitdiff
path: root/integer.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-21 15:10:22 -0400
committerJeffrey Walton <noloader@gmail.com>2018-08-21 15:10:22 -0400
commit60c5146c5e611ad101ccf87de531cd6593e866f6 (patch)
tree1654554e4cbe6a34288eba56fad8f3a8b5ba2809 /integer.cpp
parenta65cf70ff8da6589679c763dea13093f3ef90fec (diff)
downloadcryptopp-git-60c5146c5e611ad101ccf87de531cd6593e866f6.tar.gz
Update comments in integer.cpp
Diffstat (limited to 'integer.cpp')
-rw-r--r--integer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/integer.cpp b/integer.cpp
index cab6257e..842175ad 100644
--- a/integer.cpp
+++ b/integer.cpp
@@ -40,6 +40,11 @@
// Singletons, there is no way to express the dependency order to safely
// destroy resources. (That's one of the problems C++11 dynamic
// intitialization with concurrent execution is supposed to solve).
+// The final problem with Singletons is resource/memory exhaustion in languages
+// like Java and .Net. Java and .Net load and unload a native DLL hundreds or
+// thousands of times during the life of a program. Each load produces a
+// memory leak and they can add up quickly. If they library is being used in
+// Java or .Net then Singleton must be avoided at all costs.
#include "pch.h"
#include "config.h"