pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

coreclr-git: Make destructors virtual



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Feb 3 01:16:31 2016 +0100
Changeset:	e6deb94cc76967fc79b9520c89af483ff403199c

Modified Files:
	coreclr-git/distinfo
	coreclr-git/patches/patch-src_debug_ee_debugger.h
Added Files:
	coreclr-git/patches/patch-src_debug_ee_controller.h
	coreclr-git/patches/patch-src_debug_ee_debuggermodule.cpp

Log Message:
coreclr-git: Make destructors virtual

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e6deb94cc76967fc79b9520c89af483ff403199c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 coreclr-git/distinfo                               |  4 +-
 .../patches/patch-src_debug_ee_controller.h        | 13 +++++++
 coreclr-git/patches/patch-src_debug_ee_debugger.h  | 45 ++++++++++++++++++----
 .../patches/patch-src_debug_ee_debuggermodule.cpp  | 18 +++++++++
 4 files changed, 71 insertions(+), 9 deletions(-)

diffs:
diff --git a/coreclr-git/distinfo b/coreclr-git/distinfo
index 64e6051..954c211 100644
--- a/coreclr-git/distinfo
+++ b/coreclr-git/distinfo
@@ -1,6 +1,8 @@
 $NetBSD$
 
-SHA1 (patch-src_debug_ee_debugger.h) = 43cd45cafa38911900b395ec1596496938d62a81
+SHA1 (patch-src_debug_ee_controller.h) = f1a11bdadd82b706d37236cf41d629aee247cd86
+SHA1 (patch-src_debug_ee_debugger.h) = 4f93c0da59999e326bfec29b57a202acf0341309
+SHA1 (patch-src_debug_ee_debuggermodule.cpp) = 5c15b89a14ef3457084316166afe315cef321ee2
 SHA1 (patch-src_pal_inc_pal__char16.h) = 205f6a8533838c192b36bbb00155da1b02e0f629
 SHA1 (patch-src_pal_src_CMakeLists.txt) = 7f5b7e7f669efa42fb1bc230949e508a0df080ed
 SHA1 (patch-src_pal_src_cruntime_file.cpp) = 315ad5db53ef2b893a77aa131ce97999214e0e11
diff --git a/coreclr-git/patches/patch-src_debug_ee_controller.h b/coreclr-git/patches/patch-src_debug_ee_controller.h
new file mode 100644
index 0000000..c770a05
--- /dev/null
+++ b/coreclr-git/patches/patch-src_debug_ee_controller.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/debug/ee/controller.h.orig	2016-01-28 19:04:13.000000000 +0000
++++ src/debug/ee/controller.h
+@@ -540,6 +540,8 @@ class DebuggerPatchTable : private CHash
+ {
+     VPTR_BASE_CONCRETE_VTABLE_CLASS(DebuggerPatchTable);
+ 
++    virtual ~DebuggerPatchTable() = default;
++
+     friend class DebuggerRCThread;
+ private:
+     //incremented so that we can get DPT-wide unique PIDs.
diff --git a/coreclr-git/patches/patch-src_debug_ee_debugger.h b/coreclr-git/patches/patch-src_debug_ee_debugger.h
index 6431471..e2c0db9 100644
--- a/coreclr-git/patches/patch-src_debug_ee_debugger.h
+++ b/coreclr-git/patches/patch-src_debug_ee_debugger.h
@@ -2,16 +2,45 @@ $NetBSD$
 
 --- src/debug/ee/debugger.h.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/debug/ee/debugger.h
-@@ -3643,7 +3643,7 @@ template<class T> void DeleteInteropSafe
+@@ -3084,6 +3084,8 @@ public:
  
-     if (p != NULL)
-     {
--        p->~T();
-+//        p->~T();
+ class DebuggerPendingFuncEvalTable : private CHashTableAndData<CNewZeroData>
+ {
++  public: virtual ~DebuggerPendingFuncEvalTable() = default;
++
+   private:
+ 
+     BOOL Cmp(SIZE_T k1, const HASHENTRY * pc2)
+@@ -3167,6 +3169,10 @@ typedef DPTR(struct DebuggerModuleEntry)
+ 
+ class DebuggerModuleTable : private CHashTableAndData<CNewZeroData>
+ {
++#ifdef DACCESS_COMPILE
++  public: virtual ~DebuggerModuleTable() = default;
++#endif
++
+   private:
+ 
+     BOOL Cmp(SIZE_T k1, const HASHENTRY * pc2)
+@@ -3206,7 +3212,7 @@ public:
+ #ifndef DACCESS_COMPILE
  
-         _ASSERTE(g_pDebugger != NULL);
-         DebuggerHeap * pHeap = g_pDebugger->GetInteropSafeHeap_NoThrow();
-@@ -3973,4 +3973,3 @@ void FixupDispatcherContext(T_DISPATCHER
+     DebuggerModuleTable();
+-    ~DebuggerModuleTable();
++    virtual ~DebuggerModuleTable();
+ 
+     void AddModule(DebuggerModule *module);
+ 
+@@ -3274,6 +3280,8 @@ class DebuggerMethodInfoTable : private 
+ {
+     VPTR_BASE_CONCRETE_VTABLE_CLASS(DebuggerMethodInfoTable);
+ 
++    virtual ~DebuggerMethodInfoTable() = default;
++
+   private:
+     BOOL Cmp(SIZE_T k1, const HASHENTRY * pc2)
+     {
+@@ -3973,4 +3981,3 @@ void FixupDispatcherContext(T_DISPATCHER
  #endif
  
  #endif /* DEBUGGER_H_ */
diff --git a/coreclr-git/patches/patch-src_debug_ee_debuggermodule.cpp b/coreclr-git/patches/patch-src_debug_ee_debuggermodule.cpp
new file mode 100644
index 0000000..799e197
--- /dev/null
+++ b/coreclr-git/patches/patch-src_debug_ee_debuggermodule.cpp
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- src/debug/ee/debuggermodule.cpp.orig	2016-01-28 19:04:13.000000000 +0000
++++ src/debug/ee/debuggermodule.cpp
+@@ -103,7 +103,6 @@ void DebuggerModule::SetCanChangeJitFlag
+ 
+ #ifndef DACCESS_COMPILE
+ 
+-
+ DebuggerModuleTable::DebuggerModuleTable() : CHashTableAndData<CNewZeroData>(101)
+ {
+     WRAPPER_NO_CONTRACT;
+@@ -440,5 +439,3 @@ DebuggerModule *DebuggerModuleTable::Get
+     else
+         return entry->module;
+ }
+-
+-


Home | Main Index | Thread Index | Old Index