Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Describe the validity of null managed pointers
- Declare that it is valid to have a null managed pointer, but declare it invalid to actually read from such a pointer - In practice this has always been legal, as it has been legal to managed pointer locals for years, and they are included in the list of values that are zeroinitialized on method start - Also clarify the rules to permit a managed pointer to the location directly following a managed object. - This is a new capability in the spec that will likely be useful for accessing fixed size data buffers held in objects of the GC heap. However, the GC has been able to tolerate this behavior for many years, so there is no code change necessary. Fixes dotnet#69690
- Loading branch information