- Notifications
You must be signed in to change notification settings - Fork749
Use new references#1603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Use new references#1603
Changes fromall commits
Commits
Show all changes
120 commits Select commitHold shift + click to select a range
5d6e5d5
use reference types instead of IntPtr where possible in runtime.cs
lostmsu2d33902
switched converter.cs to the new style references
lostmsuf8b761a
switched most of classbase.cs to the new style references (except cro…
lostmsu09d8e41
switched pyobject.cs to the new style references
lostmsu1b58cf4
mostly switched moduleobject.cs to the new style references
lostmsuc05c6ec
switched methodbinder.cs to the new style references
lostmsud626f7e
partially switched classderived.cs to the new reference style
lostmsuff60ec4
switched arrayobject.cs to the new style references
lostmsu0010fa0
switched delegatemanager.cs to the new style references
lostmsu178a359
partially switched metatype.cs to the new style references
lostmsu9764b25
switched typemanager.cs to the new style references
lostmsu11edcc3
switched pytype.cs to the new style references
lostmsu2e71874
mass enable nullable types
lostmsu3076040
fixed nullablity in arrayobject.cs
lostmsu56f3bd5
fixed nullability in assemblymanager.cs
lostmsu58cb0e6
switched classmanager.cs to the new style references
lostmsu2095b46
switched classobject.cs to the new style references
lostmsuf6b84da
partially switched managedtype.cs to the new style references
lostmsuee65632
partially switched classmanager.cs to the new style references
lostmsu5266dc4
PyIdentifier public members to return borrowed references
lostmsu0bc3670
added nullability annotations to methodbinder.cs
lostmsude9a8cb
switched methodbinding.cs and methodobject.cs to the new style refere…
lostmsu9195c30
switched overload.cs to the new style references
lostmsu590de7a
switched propertyobject.cs to the new style references
lostmsu7fa537a
switched delegateobject.cs to the new style references
lostmsu49124fc
switched module.cs to the new style references
lostmsu9db9b0b
nullability annotations for PyObject
lostmsu00fd17a
switched modulefunctionobject.cs to the new style references
lostmsu5798b41
minor refactorings
lostmsuebdf7c5
partially switched moduleobject.cs and importhook.cs to the new style…
lostmsu5ad09e4
switched exceptions.cs to the new style references
lostmsud1abd9a
switched interfaceobject.cs to the new style references
lostmsu43a862a
switched pythonexception.cs to the new style references
lostmsu1d80162
switched pytuple.cs to the new style references
lostmsu0241b38
switched eventobject.cs and eventbiding.cs to the new style references
lostmsu2ac952a
switched all PyObject derived classes to the new style references
lostmsu7adf98a
implemented non-confusing PyModule_AddObject
lostmsu2dd3f8f
switched pythonengine.cs to the new style references
lostmsu3b79019
switched fieldobject.cs and constructorbinding.cs to the new style re…
lostmsu9b990c1
switched finalizer.cs to the new style references
lostmsu027e529
switched debughelper.cs to the new style references
lostmsu4793818
switched converter extensions and sample codecs to the new style refe…
lostmsu0d60500
switched collection wrappers (from sample codec) to the new style ref…
lostmsucf606a2
switched iterator.cs and indexer.cs to the new style references
lostmsubb84c48
getting rid of a few minor warnings and compile errors
lostmsue295679
switched to new references in some tests
lostmsu7a9e411
switched state serialization to new reference types (untested)
lostmsu9a9ed3b
minor error fixes
lostmsu581f695
assume remaning manual refcounting is not needed, because we use smar…
lostmsu07f1657
fixed new reference uses, that are not allowed in C#
lostmsu7deebd4
renamed parameter in tp_dealloc functions for clarity
lostmsu8619e77
allowed untested calls to PyObject_GC_Del and XDecref (3 in total)
lostmsu672aef6
fixed compile errors in TypeMethod (untested)
lostmsuc4909d4
workaround for analyzer not permitting copying a reference as the las…
lostmsu6fa2004
switched tests to match the new reference changes
lostmsu14949fb
fixed thunk loading for slots, that use new reference types
lostmsu0728e21
fixed PyObject_DelAttr load from DLL failing
lostmsufe4c481
fixed uses of Marshal.Read/Marshal.Write overloads with first argumen…
lostmsu4346d41
fixed OnSerialized and OnDeserialized in PyObject not being typed cor…
lostmsu62e193a
fixed bad equality comparisons
lostmsu2fa8b9c
improved reliability of Clean and Dealloc implementations
lostmsud6607b0
bad if condition
lostmsu6335d97
improved GetThunk reliability
lostmsud649d6c
fixed circular dependency in Runtime PyMembers and InternString initi…
lostmsud1bc193
tiny refactor
lostmsu32c4bb6
switched generictype.cs to the new style references
lostmsua1427ac
increfs in OnSave are no longer necessary with the new references
lostmsucd97a46
fixed MethodBinding failing for reference types
lostmsu05ecbcf
nullability annotation fix in MaybeMethodBase
lostmsua3591b6
minor improvements
lostmsu7ed0c7a
WIP
lostmsud6a853f
avoid generating and handling useless SerializationException when May…
lostmsub0c25c1
finalizer does not attempt to finalize objects when runtime is shut down
lostmsu5ca474a
PyType Dict and MRO properties to assist debugging
lostmsu48078b3
WIP 2
lostmsua624dd8
fixed PyObject disposal crashing when runtime is still finalizing
lostmsue7ab071
arrays: use 64 bit indexing, and avoid first chance .NET exceptions o…
lostmsucbe1dd2
refactored conditional ClassBase slot initialization
lostmsud5f1c48
removed DisposePythonWrappersForClrTypes
lostmsu74d87c5
simplified outdated condition in ClassBase.tp_clear
lostmsu82d6c33
sprinkled a few DebuggerHidden to make debugging easier
lostmsueeebcd7
fixed derived classes not inheriting slots correctly
lostmsu8ee8d3d
remove unused TypeManager._slotImpls
lostmsu1a4ada7
fixed TestRuntime not building in Release mode
lostmsua610aa3
can't really clear managed references to Python objects from ManagedT…
lostmsu03f32cb
PythonException is serializable
lostmsub1c9f5b
EventObject no longer used for static events. EventBinding is constru…
lostmsucb4bb9a
use a special class to stub .NET types that no longer exist after a d…
lostmsu652f946
make EventHandlerCollection serializable
lostmsu84db670
fixed MaybeMemberInfo always failing for properties
lostmsu56fafe3
fixed construct_removed_class domain reload test case
lostmsud33dcdd
domain reload test runner can run test by index
lostmsub737e10
minor docs change
lostmsud3e4fba
assert check in GetUnmanagedBaseType for null base
lostmsue003e12
PythonEngine .Exec and .Eval no longer work with raw pointers
lostmsud0a6f44
a few annotation to ease debugging
lostmsue31f7ba
ensure Python types continue to exist when registered decoders for th…
lostmsu48c0dfc
GC-related WIP
lostmsu44d65d9
merge latest master
lostmsucb58147
merge latest changes from upstream
lostmsu2fdbf0e
added TraceAlloc solution configuration
lostmsua8ef06c
fixed sending PyObject across domain boundary
lostmsu7167229
fixed accidental premature disposal of Runtime.PyNone
lostmsuab11fa2
made freeing GCHandles more robust
lostmsu7a4daeb
removed bad assert in generated constructor for derived classes
lostmsue422367
fixed __pyobj__ access
lostmsua74ea86
minor
lostmsu0325a8c
fixed Python derived types trying to double-free GCHandle when collec…
lostmsu85fab3b
reinstate collection assert on shutdown from Python
lostmsu932fce2
fixed crash when Python derived class instances survive past early sh…
lostmsuc2e207a
delay nulling GC handles of reflected instances until the last moment…
lostmsuc8f0f09
fixed assert in XDecref in case _Py_IsFinalizing is not present
lostmsue269cf0
when initialized from Python, reset slots implemented in CLR: CLR mig…
lostmsud7d5cb7
fixed minor warnings
lostmsud6edace
fixed line endings in intern_.cs
lostmsua86994f
use NonCopyableAnalyzer 0.7.0-m05
lostmsu2e040ea
Merge pull request #2 from losttech/ManagedType-DontKeepBorrowedRefs
lostmsub614dba
merge latest master
lostmsuf09a48b
fixed MacOS bad assembly test by using PythonDLL (which is never a .N…
lostmsu3794fea
Merge branch 'master' into precise-API-references
lostmsuFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 2 additions & 0 deletionsCHANGELOG.md
This file contains hidden or 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
45 changes: 45 additions & 0 deletionspythonnet.sln
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsrc/embed_tests/CallableObject.cs
This file contains hidden or 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
4 changes: 2 additions & 2 deletionssrc/embed_tests/CodecGroups.cs
This file contains hidden or 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
6 changes: 3 additions & 3 deletionssrc/embed_tests/Inheritance.cs
This file contains hidden or 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
12 changes: 3 additions & 9 deletionssrc/embed_tests/References.cs
This file contains hidden or 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
15 changes: 7 additions & 8 deletionssrc/embed_tests/TestConverter.cs
This file contains hidden or 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
8 changes: 4 additions & 4 deletionssrc/embed_tests/TestCustomMarshal.cs
This file contains hidden or 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
10 changes: 5 additions & 5 deletionssrc/embed_tests/TestDomainReload.cs
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsrc/embed_tests/TestFinalizer.cs
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsrc/embed_tests/TestNamedArguments.cs
This file contains hidden or 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
1 change: 0 additions & 1 deletionsrc/embed_tests/TestPyInt.cs
This file contains hidden or 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
8 changes: 4 additions & 4 deletionssrc/embed_tests/TestPyObject.cs
This file contains hidden or 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
6 changes: 3 additions & 3 deletionssrc/embed_tests/TestPySequence.cs
This file contains hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.